src/cm/migrations/0001_initial.py
changeset 29 644cf0d39b25
child 515 0be906e586e6
equal deleted inserted replaced
28:e54f46e6183d 29:644cf0d39b25
       
     1 
       
     2 from south.db import db
       
     3 from django.db import models
       
     4 from cm.models import *
       
     5 
       
     6 class Migration:
       
     7     
       
     8     def forwards(self, orm):
       
     9         
       
    10         # Adding model 'Notification'
       
    11         db.create_table('cm_notification', (
       
    12             ('id', orm['cm.Notification:id']),
       
    13             ('key', orm['cm.Notification:key']),
       
    14             ('adminkey', orm['cm.Notification:adminkey']),
       
    15             ('user', orm['cm.Notification:user']),
       
    16             ('name', orm['cm.Notification:name']),
       
    17             ('email', orm['cm.Notification:email']),
       
    18             ('text', orm['cm.Notification:text']),
       
    19             ('type', orm['cm.Notification:type']),
       
    20             ('active', orm['cm.Notification:active']),
       
    21         ))
       
    22         db.send_create_signal('cm', ['Notification'])
       
    23         
       
    24         # Adding model 'Activity'
       
    25         db.create_table('cm_activity', (
       
    26             ('id', orm['cm.Activity:id']),
       
    27             ('created', orm['cm.Activity:created']),
       
    28             ('originator_user', orm['cm.Activity:originator_user']),
       
    29             ('text', orm['cm.Activity:text']),
       
    30             ('text_version', orm['cm.Activity:text_version']),
       
    31             ('comment', orm['cm.Activity:comment']),
       
    32             ('user', orm['cm.Activity:user']),
       
    33             ('type', orm['cm.Activity:type']),
       
    34             ('ip', orm['cm.Activity:ip']),
       
    35         ))
       
    36         db.send_create_signal('cm', ['Activity'])
       
    37         
       
    38         # Adding model 'Comment'
       
    39         db.create_table('cm_comment', (
       
    40             ('id', orm['cm.Comment:id']),
       
    41             ('key', orm['cm.Comment:key']),
       
    42             ('adminkey', orm['cm.Comment:adminkey']),
       
    43             ('deleted', orm['cm.Comment:deleted']),
       
    44             ('state', orm['cm.Comment:state']),
       
    45             ('user', orm['cm.Comment:user']),
       
    46             ('name', orm['cm.Comment:name']),
       
    47             ('email', orm['cm.Comment:email']),
       
    48             ('modified', orm['cm.Comment:modified']),
       
    49             ('created', orm['cm.Comment:created']),
       
    50             ('text_version', orm['cm.Comment:text_version']),
       
    51             ('reply_to', orm['cm.Comment:reply_to']),
       
    52             ('title', orm['cm.Comment:title']),
       
    53             ('content', orm['cm.Comment:content']),
       
    54             ('content_html', orm['cm.Comment:content_html']),
       
    55             ('format', orm['cm.Comment:format']),
       
    56             ('tags', orm['cm.Comment:tags']),
       
    57             ('start_wrapper', orm['cm.Comment:start_wrapper']),
       
    58             ('end_wrapper', orm['cm.Comment:end_wrapper']),
       
    59             ('start_offset', orm['cm.Comment:start_offset']),
       
    60             ('end_offset', orm['cm.Comment:end_offset']),
       
    61         ))
       
    62         db.send_create_signal('cm', ['Comment'])
       
    63         
       
    64         # Adding model 'Configuration'
       
    65         db.create_table('cm_configuration', (
       
    66             ('id', orm['cm.Configuration:id']),
       
    67             ('key', orm['cm.Configuration:key']),
       
    68             ('raw_value', orm['cm.Configuration:raw_value']),
       
    69         ))
       
    70         db.send_create_signal('cm', ['Configuration'])
       
    71         
       
    72         # Adding model 'UserRole'
       
    73         db.create_table('cm_userrole', (
       
    74             ('id', orm['cm.UserRole:id']),
       
    75             ('role', orm['cm.UserRole:role']),
       
    76             ('user', orm['cm.UserRole:user']),
       
    77             ('text', orm['cm.UserRole:text']),
       
    78         ))
       
    79         db.send_create_signal('cm', ['UserRole'])
       
    80         
       
    81         # Adding model 'Attachment'
       
    82         db.create_table('cm_attachment', (
       
    83             ('id', orm['cm.Attachment:id']),
       
    84             ('key', orm['cm.Attachment:key']),
       
    85             ('adminkey', orm['cm.Attachment:adminkey']),
       
    86             ('data', orm['cm.Attachment:data']),
       
    87             ('text_version', orm['cm.Attachment:text_version']),
       
    88         ))
       
    89         db.send_create_signal('cm', ['Attachment'])
       
    90         
       
    91         # Adding model 'Email'
       
    92         db.create_table('cm_email', (
       
    93             ('id', orm['cm.Email:id']),
       
    94             ('created', orm['cm.Email:created']),
       
    95             ('subject', orm['cm.Email:subject']),
       
    96             ('body', orm['cm.Email:body']),
       
    97             ('from_email', orm['cm.Email:from_email']),
       
    98             ('to', orm['cm.Email:to']),
       
    99             ('bcc', orm['cm.Email:bcc']),
       
   100             ('message', orm['cm.Email:message']),
       
   101         ))
       
   102         db.send_create_signal('cm', ['Email'])
       
   103         
       
   104         # Adding model 'Text'
       
   105         db.create_table('cm_text', (
       
   106             ('id', orm['cm.Text:id']),
       
   107             ('key', orm['cm.Text:key']),
       
   108             ('adminkey', orm['cm.Text:adminkey']),
       
   109             ('deleted', orm['cm.Text:deleted']),
       
   110             ('state', orm['cm.Text:state']),
       
   111             ('user', orm['cm.Text:user']),
       
   112             ('name', orm['cm.Text:name']),
       
   113             ('email', orm['cm.Text:email']),
       
   114             ('modified', orm['cm.Text:modified']),
       
   115             ('created', orm['cm.Text:created']),
       
   116             ('private_feed_key', orm['cm.Text:private_feed_key']),
       
   117             ('last_text_version', orm['cm.Text:last_text_version']),
       
   118             ('title', orm['cm.Text:title']),
       
   119         ))
       
   120         db.send_create_signal('cm', ['Text'])
       
   121         
       
   122         # Adding model 'TextVersion'
       
   123         db.create_table('cm_textversion', (
       
   124             ('id', orm['cm.TextVersion:id']),
       
   125             ('user', orm['cm.TextVersion:user']),
       
   126             ('name', orm['cm.TextVersion:name']),
       
   127             ('email', orm['cm.TextVersion:email']),
       
   128             ('modified', orm['cm.TextVersion:modified']),
       
   129             ('created', orm['cm.TextVersion:created']),
       
   130             ('title', orm['cm.TextVersion:title']),
       
   131             ('format', orm['cm.TextVersion:format']),
       
   132             ('content', orm['cm.TextVersion:content']),
       
   133             ('tags', orm['cm.TextVersion:tags']),
       
   134             ('note', orm['cm.TextVersion:note']),
       
   135             ('mod_posteriori', orm['cm.TextVersion:mod_posteriori']),
       
   136             ('text', orm['cm.TextVersion:text']),
       
   137         ))
       
   138         db.send_create_signal('cm', ['TextVersion'])
       
   139         
       
   140         # Adding model 'UserProfile'
       
   141         db.create_table('cm_userprofile', (
       
   142             ('id', orm['cm.UserProfile:id']),
       
   143             ('key', orm['cm.UserProfile:key']),
       
   144             ('adminkey', orm['cm.UserProfile:adminkey']),
       
   145             ('modified', orm['cm.UserProfile:modified']),
       
   146             ('created', orm['cm.UserProfile:created']),
       
   147             ('user', orm['cm.UserProfile:user']),
       
   148             ('allow_contact', orm['cm.UserProfile:allow_contact']),
       
   149             ('preferred_language', orm['cm.UserProfile:preferred_language']),
       
   150             ('is_temp', orm['cm.UserProfile:is_temp']),
       
   151             ('is_email_error', orm['cm.UserProfile:is_email_error']),
       
   152             ('is_suspended', orm['cm.UserProfile:is_suspended']),
       
   153         ))
       
   154         db.send_create_signal('cm', ['UserProfile'])
       
   155         
       
   156         # Adding model 'Role'
       
   157         db.create_table('cm_role', (
       
   158             ('id', orm['cm.Role:id']),
       
   159             ('name', orm['cm.Role:name']),
       
   160             ('description', orm['cm.Role:description']),
       
   161             ('global_scope', orm['cm.Role:global_scope']),
       
   162             ('anon', orm['cm.Role:anon']),
       
   163         ))
       
   164         db.send_create_signal('cm', ['Role'])
       
   165         
       
   166         # Adding ManyToManyField 'Role.permissions'
       
   167         db.create_table('cm_role_permissions', (
       
   168             ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
       
   169             ('role', models.ForeignKey(orm.Role, null=False)),
       
   170             ('permission', models.ForeignKey(orm['auth.Permission'], null=False))
       
   171         ))
       
   172         
       
   173         # Creating unique_together for [role, user, text] on UserRole.
       
   174         db.create_unique('cm_userrole', ['role_id', 'user_id', 'text_id'])
       
   175         
       
   176     
       
   177     
       
   178     def backwards(self, orm):
       
   179         
       
   180         # Deleting unique_together for [role, user, text] on UserRole.
       
   181         db.delete_unique('cm_userrole', ['role_id', 'user_id', 'text_id'])
       
   182         
       
   183         # Deleting model 'Notification'
       
   184         db.delete_table('cm_notification')
       
   185         
       
   186         # Deleting model 'Activity'
       
   187         db.delete_table('cm_activity')
       
   188         
       
   189         # Deleting model 'Comment'
       
   190         db.delete_table('cm_comment')
       
   191         
       
   192         # Deleting model 'Configuration'
       
   193         db.delete_table('cm_configuration')
       
   194         
       
   195         # Deleting model 'UserRole'
       
   196         db.delete_table('cm_userrole')
       
   197         
       
   198         # Deleting model 'Attachment'
       
   199         db.delete_table('cm_attachment')
       
   200         
       
   201         # Deleting model 'Email'
       
   202         db.delete_table('cm_email')
       
   203         
       
   204         # Deleting model 'Text'
       
   205         db.delete_table('cm_text')
       
   206         
       
   207         # Deleting model 'TextVersion'
       
   208         db.delete_table('cm_textversion')
       
   209         
       
   210         # Deleting model 'UserProfile'
       
   211         db.delete_table('cm_userprofile')
       
   212         
       
   213         # Deleting model 'Role'
       
   214         db.delete_table('cm_role')
       
   215         
       
   216         # Dropping ManyToManyField 'Role.permissions'
       
   217         db.delete_table('cm_role_permissions')
       
   218         
       
   219     
       
   220     
       
   221     models = {
       
   222         'auth.group': {
       
   223             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   224             'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
       
   225             'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
       
   226         },
       
   227         'auth.permission': {
       
   228             'Meta': {'unique_together': "(('content_type', 'codename'),)"},
       
   229             'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
       
   230             'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
       
   231             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   232             'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
       
   233         },
       
   234         'auth.user': {
       
   235             'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
       
   236             'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
       
   237             'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
       
   238             'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
       
   239             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   240             'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
       
   241             'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
       
   242             'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
       
   243             'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
       
   244             'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
       
   245             'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
       
   246             'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
       
   247             'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '75'})
       
   248         },
       
   249         'cm.activity': {
       
   250             'comment': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['cm.Comment']", 'null': 'True', 'blank': 'True'}),
       
   251             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
       
   252             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   253             'ip': ('django.db.models.fields.IPAddressField', [], {'default': 'None', 'max_length': '15', 'null': 'True', 'blank': 'True'}),
       
   254             'originator_user': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'originator_activity'", 'null': 'True', 'blank': 'True', 'to': "orm['auth.User']"}),
       
   255             'text': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['cm.Text']", 'null': 'True', 'blank': 'True'}),
       
   256             'text_version': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['cm.TextVersion']", 'null': 'True', 'blank': 'True'}),
       
   257             'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
       
   258             'user': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
       
   259         },
       
   260         'cm.attachment': {
       
   261             'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
       
   262             'data': ('django.db.models.fields.files.FileField', [], {'max_length': '1000'}),
       
   263             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   264             'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
       
   265             'text_version': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.TextVersion']"})
       
   266         },
       
   267         'cm.comment': {
       
   268             'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
       
   269             'content': ('django.db.models.fields.TextField', [], {}),
       
   270             'content_html': ('django.db.models.fields.TextField', [], {}),
       
   271             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
       
   272             'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
       
   273             'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
       
   274             'end_offset': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
       
   275             'end_wrapper': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
       
   276             'format': ('django.db.models.fields.CharField', [], {'default': "'markdown'", 'max_length': '20'}),
       
   277             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   278             'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
       
   279             'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
       
   280             'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
       
   281             'reply_to': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Comment']", 'null': 'True', 'blank': 'True'}),
       
   282             'start_offset': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
       
   283             'start_wrapper': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
       
   284             'state': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
       
   285             'tags': ('tagging.fields.TagField', [], {}),
       
   286             'text_version': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.TextVersion']"}),
       
   287             'title': ('django.db.models.fields.TextField', [], {}),
       
   288             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
       
   289         },
       
   290         'cm.configuration': {
       
   291             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   292             'key': ('django.db.models.fields.TextField', [], {}),
       
   293             'raw_value': ('django.db.models.fields.TextField', [], {})
       
   294         },
       
   295         'cm.email': {
       
   296             'bcc': ('django.db.models.fields.TextField', [], {}),
       
   297             'body': ('django.db.models.fields.TextField', [], {}),
       
   298             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
       
   299             'from_email': ('django.db.models.fields.TextField', [], {}),
       
   300             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   301             'message': ('django.db.models.fields.TextField', [], {}),
       
   302             'subject': ('django.db.models.fields.TextField', [], {}),
       
   303             'to': ('django.db.models.fields.TextField', [], {})
       
   304         },
       
   305         'cm.notification': {
       
   306             'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
       
   307             'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
       
   308             'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
       
   309             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   310             'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
       
   311             'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
       
   312             'text': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Text']", 'null': 'True', 'blank': 'True'}),
       
   313             'type': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
       
   314             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
       
   315         },
       
   316         'cm.role': {
       
   317             'anon': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
       
   318             'description': ('django.db.models.fields.TextField', [], {}),
       
   319             'global_scope': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
       
   320             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   321             'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'}),
       
   322             'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']"})
       
   323         },
       
   324         'cm.text': {
       
   325             'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
       
   326             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
       
   327             'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
       
   328             'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
       
   329             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   330             'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
       
   331             'last_text_version': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'related_text'", 'null': 'True', 'to': "orm['cm.TextVersion']"}),
       
   332             'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
       
   333             'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
       
   334             'private_feed_key': ('django.db.models.fields.CharField', [], {'null': 'True', 'default': 'None', 'max_length': '20', 'blank': 'True', 'unique': 'True', 'db_index': 'True'}),
       
   335             'state': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
       
   336             'title': ('django.db.models.fields.TextField', [], {}),
       
   337             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
       
   338         },
       
   339         'cm.textversion': {
       
   340             'content': ('django.db.models.fields.TextField', [], {}),
       
   341             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
       
   342             'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
       
   343             'format': ('django.db.models.fields.CharField', [], {'default': "'markdown'", 'max_length': '20'}),
       
   344             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   345             'mod_posteriori': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
       
   346             'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
       
   347             'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
       
   348             'note': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
       
   349             'tags': ('tagging.fields.TagField', [], {'max_length': '1000'}),
       
   350             'text': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Text']"}),
       
   351             'title': ('django.db.models.fields.TextField', [], {}),
       
   352             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
       
   353         },
       
   354         'cm.userprofile': {
       
   355             'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
       
   356             'allow_contact': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
       
   357             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
       
   358             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   359             'is_email_error': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
       
   360             'is_suspended': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
       
   361             'is_temp': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
       
   362             'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
       
   363             'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
       
   364             'preferred_language': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '2'}),
       
   365             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'unique': 'True'})
       
   366         },
       
   367         'cm.userrole': {
       
   368             'Meta': {'unique_together': "(('role', 'user', 'text'),)"},
       
   369             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   370             'role': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Role']", 'null': 'True', 'blank': 'True'}),
       
   371             'text': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Text']", 'null': 'True', 'blank': 'True'}),
       
   372             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
       
   373         },
       
   374         'contenttypes.contenttype': {
       
   375             'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"},
       
   376             'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
       
   377             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
       
   378             'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
       
   379             'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
       
   380         }
       
   381     }
       
   382     
       
   383     complete_apps = ['cm']