src/cm/migrations/0006_add_id_key_to_comments.py
author Simon Descarpentries <sid@sopinspace.com>
Mon, 21 Oct 2013 16:37:07 +0200
changeset 553 bf26fb47a14c
parent 130 f257ad33bed5
permissions -rw-r--r--
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout. So the automated scrolling operations in c_sync.js must be adjustable to the right part to scroll. Also, if a comment have to be shown outside of the current viewport, we scroll the correct part to that viewport and then set the comment top Y offset to juste what it needs to avoid the "Add comment" button after scrolling operation. If not in Safari mobile, we add an offset here to avoid comment to display under the "Add comment" button.
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
from cm.models_base import generate_key, KEY_MAX_SIZE
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     6
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     7
class Migration:
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     8
    
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
     9
    def forwards(self, orm):
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    10
        
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    11
        # Adding field 'Comment.id_key'
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    12
        db.add_column('cm_comment', 'id_key', models.CharField(max_length=KEY_MAX_SIZE, blank=False, default=''))
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
    
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    15
    def backwards(self, orm):
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
        # Deleting field 'Comment.id_key'
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    18
        db.delete_column('cm_comment', 'id_key')
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    19
        
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    20
    
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    21
    models = {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    22
        'auth.group': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    23
            '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
    24
            '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
    25
            '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
    26
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    27
        'auth.permission': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    28
            'Meta': {'unique_together': "(('content_type', 'codename'),)"},
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    29
            '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
    30
            '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
    31
            '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
    32
            '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
    33
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    34
        'auth.user': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    35
            '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
    36
            '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
    37
            '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
    38
            '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
    39
            '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
    40
            '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
    41
            '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
    42
            '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
    43
            '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
    44
            '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
    45
            '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
    46
            '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
    47
            '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
    48
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    49
        'cm.activity': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    50
            '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
    51
            '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
    52
            '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
    53
            '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
    54
            '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
    55
            '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
    56
            '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
    57
            '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
    58
            '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
    59
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    60
        'cm.attachment': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    61
            '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
    62
            '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
    63
            '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
    64
            '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
    65
            '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
    66
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    67
        'cm.comment': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    68
            '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
    69
            'content': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    70
            'content_html': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    71
            'created': ('django.db.models.fields.DateTimeField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    72
            '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
    73
            '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
    74
            '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
    75
            '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
    76
            '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
    77
            '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
    78
            '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
    79
            '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
    80
            'modified': ('django.db.models.fields.DateTimeField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    81
            '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
    82
            '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
    83
            '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
    84
            '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
    85
            '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
    86
            'tags': ('tagging.fields.TagField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    87
            '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
    88
            'title': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    89
            '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
    90
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    91
        'cm.configuration': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    92
            '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
    93
            'key': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    94
            'raw_value': ('django.db.models.fields.TextField', [], {})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    95
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    96
        'cm.email': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    97
            'bcc': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    98
            'body': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
    99
            '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
   100
            'from_email': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   101
            '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
   102
            'message': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   103
            'subject': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   104
            'to': ('django.db.models.fields.TextField', [], {})
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   105
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   106
        'cm.notification': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   107
            '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
   108
            '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
   109
            '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
   110
            '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
   111
            '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
   112
            '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
   113
            '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
   114
            '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
   115
            '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
   116
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   117
        'cm.role': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   118
            '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
   119
            'description': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   120
            '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
   121
            '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
   122
            '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
   123
            '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
   124
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   125
        'cm.text': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   126
            '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
   127
            '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
   128
            '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
   129
            '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
   130
            '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
   131
            '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
   132
            '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
   133
            '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
   134
            '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
   135
            '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
   136
            '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
   137
            'title': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   138
            '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
   139
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   140
        'cm.textversion': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   141
            '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
   142
            'content': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   143
            '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
   144
            '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
   145
            '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
   146
            '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
   147
            '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
   148
            '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
   149
            '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
   150
            '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
   151
            '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
   152
            'tags': ('tagging.fields.TagField', [], {'max_length': '1000'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   153
            '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
   154
            'title': ('django.db.models.fields.TextField', [], {}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   155
            '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
   156
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   157
        'cm.userprofile': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   158
            '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
   159
            '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
   160
            '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
   161
            '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
   162
            '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
   163
            '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
   164
            '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
   165
            '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
   166
            '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
   167
            '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
   168
            'tags': ('tagging.fields.TagField', [], {'max_length': '1000'}),
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   169
            '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
   170
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   171
        'cm.userrole': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   172
            'Meta': {'unique_together': "(('role', 'user', 'text'),)"},
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   173
            '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
   174
            '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
   175
            '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
   176
            '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
   177
        },
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   178
        'contenttypes.contenttype': {
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   179
            '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
   180
            '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
   181
            '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
   182
            '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
   183
            '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
   184
        }
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   185
    }
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   186
    
f257ad33bed5 model change+migration (add id_key to comment): run ./bin/django migrate
raph
parents:
diff changeset
   187
    complete_apps = ['cm']