Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / migrations / 0031_new_user_fields.py @ 35e67254

History | View | Annotate | Download (24.5 kB)

1
# encoding: utf-8
2
import uuid
3
import datetime
4
from south.db import db
5
from south.v2 import DataMigration
6
from django.db import models
7

    
8
class Migration(DataMigration):
9

    
10
    def forwards(self, orm):
11
        for user in orm.AstakosUser.objects.all():
12
            user_handled = False
13
            # not moderated
14
            if not user.is_active and not user.activation_sent and not \
15
                    user.email_verified:
16
                user_handled = True
17
                user.moderated = False
18
                user.verification_code = str(uuid.uuid4())
19

    
20
            # moderated/not verified
21
            if not user.is_active and user.activation_sent and not \
22
                    user.email_verified:
23
                user_handled = True
24
                user.moderated = True
25
                user.accepted_policy = 'migration'
26
                user.moderated_at = user.updated
27
                user.verification_code = user.auth_token
28

    
29
            # moderated/active/verified
30
            if user.is_active and user.email_verified:
31
                user_handled = True
32
                user.moderated = True
33
                user.moderated_at = user.auth_token_created
34
                user.accepted_policy = 'migration'
35
                user.accepted_email = user.email
36
                user.verified_at = user.moderated_at
37

    
38
            # verified
39
            if not user.is_active and user.email_verified and \
40
                    user.activation_sent:
41
                user_handled = True
42
                user.moderated = True
43
                user.moderated_at = user.auth_token_created
44
                user.accepted_policy = 'migration'
45
                user.accepted_email = user.email
46
                user.is_active = False
47
                user.deactivated_reason = 'migration'
48
                user.deactivated_at = user.updated
49

    
50
            if not user_handled:
51
                print "ERROR: %s:%s is not migrated" % (user.pk, user.username)
52

    
53
            user.save()
54

    
55

    
56
    def backwards(self, orm):
57
        "Write your backwards methods here."
58

    
59

    
60
    models = {
61
        'auth.group': {
62
            'Meta': {'object_name': 'Group'},
63
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
64
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
65
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
66
        },
67
        'auth.permission': {
68
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
69
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
70
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
71
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
73
        },
74
        'auth.user': {
75
            'Meta': {'object_name': 'User'},
76
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
77
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
78
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
79
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
80
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
81
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
82
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
83
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
84
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
85
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
86
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
87
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
88
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
89
        },
90
        'contenttypes.contenttype': {
91
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
92
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
93
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
95
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
96
        },
97
        'im.additionalmail': {
98
            'Meta': {'object_name': 'AdditionalMail'},
99
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
100
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
101
            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"})
102
        },
103
        'im.approvalterms': {
104
            'Meta': {'object_name': 'ApprovalTerms'},
105
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
106
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
107
            'location': ('django.db.models.fields.CharField', [], {'max_length': '255'})
108
        },
109
        'im.astakosuser': {
110
            'Meta': {'object_name': 'AstakosUser', '_ormbases': ['auth.User']},
111
            'accepted_email': ('django.db.models.fields.EmailField', [], {'default': 'None', 'max_length': '75', 'null': 'True', 'blank': 'True'}),
112
            'accepted_policy': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '255', 'null': 'True', 'blank': 'True'}),
113
            'activation_sent': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
114
            'affiliation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
115
            'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
116
            'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
117
            'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
118
            'date_signed_terms': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
119
            'deactivated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
120
            'deactivated_reason': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}),
121
            'disturbed_quota': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
122
            'email_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
123
            'has_credits': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
124
            'has_signed_terms': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
125
            'invitations': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
126
            'is_rejected': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
127
            'is_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
128
            'level': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
129
            'moderated': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
130
            'moderated_at': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
131
            'moderated_data': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
132
            'policy': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['im.Resource']", 'null': 'True', 'through': "orm['im.AstakosUserQuota']", 'symmetrical': 'False'}),
133
            'rejected_reason': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
134
            'updated': ('django.db.models.fields.DateTimeField', [], {}),
135
            'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
136
            'uuid': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True'}),
137
            'verification_code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True'}),
138
            'verified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
139
        },
140
        'im.astakosuserauthprovider': {
141
            'Meta': {'ordering': "('module', 'created')", 'unique_together': "(('identifier', 'module', 'user'),)", 'object_name': 'AstakosUserAuthProvider'},
142
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
143
            'affiliation': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '255', 'null': 'True', 'blank': 'True'}),
144
            'auth_backend': ('django.db.models.fields.CharField', [], {'default': "'astakos'", 'max_length': '255'}),
145
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
146
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
147
            'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
148
            'info_data': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}),
149
            'module': ('django.db.models.fields.CharField', [], {'default': "'local'", 'max_length': '255'}),
150
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_providers'", 'to': "orm['im.AstakosUser']"})
151
        },
152
        'im.astakosuserquota': {
153
            'Meta': {'unique_together': "(('resource', 'user'),)", 'object_name': 'AstakosUserQuota'},
154
            'capacity': ('snf_django.lib.db.fields.IntDecimalField', [], {'max_digits': '38', 'decimal_places': '0'}),
155
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
156
            'resource': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Resource']"}),
157
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"})
158
        },
159
        'im.authproviderpolicyprofile': {
160
            'Meta': {'ordering': "['priority']", 'object_name': 'AuthProviderPolicyProfile'},
161
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
162
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'authpolicy_profiles'", 'symmetrical': 'False', 'to': "orm['auth.Group']"}),
163
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
164
            'is_exclusive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
166
            'policy_add': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
167
            'policy_automoderate': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
168
            'policy_create': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
169
            'policy_limit': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'}),
170
            'policy_login': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
171
            'policy_remove': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
172
            'policy_required': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
173
            'policy_switch': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
174
            'priority': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
175
            'provider': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
176
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'authpolicy_profiles'", 'symmetrical': 'False', 'to': "orm['im.AstakosUser']"})
177
        },
178
        'im.chain': {
179
            'Meta': {'object_name': 'Chain'},
180
            'chain': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
181
        },
182
        'im.emailchange': {
183
            'Meta': {'object_name': 'EmailChange'},
184
            'activation_key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40', 'db_index': 'True'}),
185
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
186
            'new_email_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
187
            'requested_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
188
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'emailchanges'", 'unique': 'True', 'to': "orm['im.AstakosUser']"})
189
        },
190
        'im.invitation': {
191
            'Meta': {'object_name': 'Invitation'},
192
            'code': ('django.db.models.fields.BigIntegerField', [], {'db_index': 'True'}),
193
            'consumed': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
194
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
195
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
196
            'inviter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invitations_sent'", 'null': 'True', 'to': "orm['im.AstakosUser']"}),
197
            'is_consumed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
198
            'realname': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
199
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
200
        },
201
        'im.pendingthirdpartyuser': {
202
            'Meta': {'unique_together': "(('provider', 'third_party_identifier'),)", 'object_name': 'PendingThirdPartyUser'},
203
            'affiliation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
204
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
205
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
206
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
207
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
208
            'info': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}),
209
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
210
            'provider': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
211
            'third_party_identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
212
            'token': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
213
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
214
        },
215
        'im.project': {
216
            'Meta': {'object_name': 'Project'},
217
            'application': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'project'", 'unique': 'True', 'to': "orm['im.ProjectApplication']"}),
218
            'creation_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
219
            'deactivation_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
220
            'deactivation_reason': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
221
            'id': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'chained_project'", 'unique': 'True', 'primary_key': 'True', 'db_column': "'id'", 'to': "orm['im.Chain']"}),
222
            'last_approval_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
223
            'members': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['im.AstakosUser']", 'through': "orm['im.ProjectMembership']", 'symmetrical': 'False'}),
224
            'name': ('django.db.models.fields.CharField', [], {'max_length': '80', 'unique': 'True', 'null': 'True', 'db_index': 'True'}),
225
            'state': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_index': 'True'})
226
        },
227
        'im.projectapplication': {
228
            'Meta': {'unique_together': "(('chain', 'id'),)", 'object_name': 'ProjectApplication'},
229
            'applicant': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'projects_applied'", 'to': "orm['im.AstakosUser']"}),
230
            'chain': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'chained_apps'", 'db_column': "'chain'", 'to': "orm['im.Chain']"}),
231
            'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
232
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
233
            'end_date': ('django.db.models.fields.DateTimeField', [], {}),
234
            'homepage': ('django.db.models.fields.URLField', [], {'max_length': '255', 'null': 'True'}),
235
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
236
            'issue_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
237
            'limit_on_members_number': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}),
238
            'member_join_policy': ('django.db.models.fields.IntegerField', [], {}),
239
            'member_leave_policy': ('django.db.models.fields.IntegerField', [], {}),
240
            'name': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
241
            'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'projects_owned'", 'to': "orm['im.AstakosUser']"}),
242
            'precursor_application': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.ProjectApplication']", 'null': 'True', 'blank': 'True'}),
243
            'resource_grants': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['im.Resource']", 'null': 'True', 'through': "orm['im.ProjectResourceGrant']", 'blank': 'True'}),
244
            'response': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
245
            'response_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
246
            'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
247
            'state': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'})
248
        },
249
        'im.projectmembership': {
250
            'Meta': {'unique_together': "(('person', 'project'),)", 'object_name': 'ProjectMembership'},
251
            'acceptance_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'db_index': 'True'}),
252
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
253
            'leave_request_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
254
            'person': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"}),
255
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Project']"}),
256
            'request_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
257
            'state': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'})
258
        },
259
        'im.projectmembershiphistory': {
260
            'Meta': {'object_name': 'ProjectMembershipHistory'},
261
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
262
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
263
            'person': ('django.db.models.fields.BigIntegerField', [], {}),
264
            'project': ('django.db.models.fields.BigIntegerField', [], {}),
265
            'reason': ('django.db.models.fields.IntegerField', [], {}),
266
            'serial': ('django.db.models.fields.BigIntegerField', [], {})
267
        },
268
        'im.projectresourcegrant': {
269
            'Meta': {'unique_together': "(('resource', 'project_application'),)", 'object_name': 'ProjectResourceGrant'},
270
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
271
            'member_capacity': ('snf_django.lib.db.fields.IntDecimalField', [], {'default': '0', 'max_digits': '38', 'decimal_places': '0'}),
272
            'project_application': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.ProjectApplication']", 'null': 'True'}),
273
            'project_capacity': ('snf_django.lib.db.fields.IntDecimalField', [], {'null': 'True', 'max_digits': '38', 'decimal_places': '0'}),
274
            'resource': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Resource']"})
275
        },
276
        'im.resource': {
277
            'Meta': {'object_name': 'Resource'},
278
            'allow_in_projects': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
279
            'desc': ('django.db.models.fields.TextField', [], {'null': 'True'}),
280
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
281
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
282
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Service']"}),
283
            'unit': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
284
            'uplimit': ('snf_django.lib.db.fields.IntDecimalField', [], {'default': '0', 'max_digits': '38', 'decimal_places': '0'})
285
        },
286
        'im.serial': {
287
            'Meta': {'object_name': 'Serial'},
288
            'serial': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
289
        },
290
        'im.service': {
291
            'Meta': {'object_name': 'Service'},
292
            'api_url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
293
            'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
294
            'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
295
            'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
296
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
297
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'}),
298
            'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'})
299
        },
300
        'im.sessioncatalog': {
301
            'Meta': {'object_name': 'SessionCatalog'},
302
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
303
            'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
304
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'sessions'", 'null': 'True', 'to': "orm['im.AstakosUser']"})
305
        },
306
        'im.usersetting': {
307
            'Meta': {'unique_together': "(('user', 'setting'),)", 'object_name': 'UserSetting'},
308
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
309
            'setting': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
310
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"}),
311
            'value': ('django.db.models.fields.IntegerField', [], {})
312
        }
313
    }
314

    
315
    complete_apps = ['im']