src/cm/migrations/0007_populate_id_key_in_comments.py
author gibus
Wed, 11 Sep 2013 23:13:01 +0200
changeset 532 0bad3613f59d
parent 520 0228f30668f1
permissions -rw-r--r--
Reverse to YUI 3.0.0 since with YUI.3.10.3, comment content including words 'paragraph' or 'section' do not show up on Firefox, this is weird and has to be investigated.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
130
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     1
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     2
from south.db import db
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     3
from django.db import models
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     4
from cm.models import *
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     5
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     6
class Migration:
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     7
    
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     8
    def forwards(self, orm):
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     9
        "Write your forwards migration here"
520
0228f30668f1 Clean south migration
gibus
parents: 130
diff changeset
    10
        for c in orm.Comment.objects.all():
130
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    11
            c.id_key = c.key
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    12
            c.save()    
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    13
    
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    14
    def backwards(self, orm):
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    15
        "Write your backwards migration here"
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    16
    
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    17
    
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    18
    models = {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    19
        'auth.group': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    20
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    21
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    22
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    23
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    24
        'auth.permission': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    25
            'Meta': {'unique_together': "(('content_type', 'codename'),)"},
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    26
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    27
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    28
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    29
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    30
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    31
        'auth.user': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    32
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    33
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    34
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    35
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    36
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    37
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    38
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    39
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    40
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    41
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    42
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    43
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    44
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '75'})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    45
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    46
        'cm.activity': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    47
            'comment': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['cm.Comment']", 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    48
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    49
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    50
            'ip': ('django.db.models.fields.IPAddressField', [], {'default': 'None', 'max_length': '15', 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    51
            'originator_user': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'originator_activity'", 'null': 'True', 'blank': 'True', 'to': "orm['auth.User']"}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    52
            'text': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['cm.Text']", 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    53
            'text_version': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['cm.TextVersion']", 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    54
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    55
            'user': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    56
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    57
        'cm.attachment': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    58
            'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    59
            'data': ('django.db.models.fields.files.FileField', [], {'max_length': '1000'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    60
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    61
            'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    62
            'text_version': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.TextVersion']"})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    63
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    64
        'cm.comment': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    65
            'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    66
            'content': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    67
            'content_html': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    68
            'created': ('django.db.models.fields.DateTimeField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    69
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    70
            'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    71
            'end_offset': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    72
            'end_wrapper': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    73
            'format': ('django.db.models.fields.CharField', [], {'default': "'markdown'", 'max_length': '20'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    74
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    75
            'id_key': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    76
            'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    77
            'modified': ('django.db.models.fields.DateTimeField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    78
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    79
            'reply_to': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Comment']", 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    80
            'start_offset': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    81
            'start_wrapper': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    82
            'state': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    83
            'tags': ('tagging.fields.TagField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    84
            'text_version': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.TextVersion']"}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    85
            'title': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    86
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    87
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    88
        'cm.configuration': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    89
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    90
            'key': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    91
            'raw_value': ('django.db.models.fields.TextField', [], {})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    92
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    93
        'cm.email': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    94
            'bcc': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    95
            'body': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    96
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    97
            'from_email': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    98
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    99
            'message': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   100
            'subject': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   101
            'to': ('django.db.models.fields.TextField', [], {})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   102
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   103
        'cm.notification': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   104
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   105
            'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   106
            'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   107
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   108
            'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   109
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   110
            'text': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Text']", 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   111
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   112
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   113
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   114
        'cm.role': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   115
            'anon': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   116
            'description': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   117
            'global_scope': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   118
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   119
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   120
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']"})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   121
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   122
        'cm.text': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   123
            'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   124
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   125
            'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   126
            'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   127
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   128
            'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   129
            'last_text_version': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'related_text'", 'null': 'True', 'to': "orm['cm.TextVersion']"}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   130
            'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   131
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   132
            'private_feed_key': ('django.db.models.fields.CharField', [], {'null': 'True', 'default': 'None', 'max_length': '20', 'blank': 'True', 'unique': 'True', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   133
            'state': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   134
            'title': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   135
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   136
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   137
        'cm.textversion': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   138
            'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   139
            'content': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   140
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   141
            'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   142
            'format': ('django.db.models.fields.CharField', [], {'default': "'markdown'", 'max_length': '20'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   143
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   144
            'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   145
            'mod_posteriori': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   146
            'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   147
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   148
            'note': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   149
            'tags': ('tagging.fields.TagField', [], {'max_length': '1000'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   150
            'text': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Text']"}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   151
            'title': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   152
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   153
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   154
        'cm.userprofile': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   155
            'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   156
            'allow_contact': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   157
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   158
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   159
            'is_email_error': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   160
            'is_suspended': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   161
            'is_temp': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   162
            'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   163
            'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   164
            'preferred_language': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '2'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   165
            'tags': ('tagging.fields.TagField', [], {'max_length': '1000'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   166
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'unique': 'True'})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   167
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   168
        'cm.userrole': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   169
            'Meta': {'unique_together': "(('role', 'user', 'text'),)"},
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   170
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   171
            'role': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Role']", 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   172
            'text': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Text']", 'null': 'True', 'blank': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   173
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   174
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   175
        'contenttypes.contenttype': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   176
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"},
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   177
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   178
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   179
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   180
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   181
        }
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   182
    }
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   183
    
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   184
    complete_apps = ['cm']