Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / migrations / 0027_rename_services_resources.py @ 20f68e60

History | View | Annotate | Download (23 kB)

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

    
7
class Migration(DataMigration):
8

    
9
    def forwards(self, orm):
10
        # Rename pithos+ to pithos
11
        try:
12
            s = orm.Service.objects.get(name='pithos+')
13
        except orm.Service.DoesNotExist:
14
            print "No service named 'pithos+' found."
15
        else:
16
            s.name = 'pithos'
17
            s.save()
18

    
19
        # Prefix resource names
20
        resources = orm.Resource.objects.all().select_related()
21
        for resource in resources:
22
            resource_name = resource.name
23
            prefix = resource.service.name + "."
24
            if resource_name.startswith(prefix):
25
                print ("%s is already prefixed with service name."
26
                       % resource_name)
27
                continue
28
            resource.name = prefix + resource_name
29
            resource.save()
30

    
31

    
32
    def backwards(self, orm):
33
        # Prefix resource names
34
        resources = orm.Resource.objects.all().select_related()
35
        for resource in resources:
36
            resource_name = resource.name
37
            prefix, sep, name = resource_name.partition('.')
38
            if prefix != resource.service.name:
39
                print ("Prefix %s does not equal the service name."
40
                       % prefix)
41
                continue
42
            resource.name = name
43
            resource.save()
44

    
45
        # Rename pithos to pithos+
46
        try:
47
            s = orm.Service.objects.get(name='pithos')
48
        except orm.Service.DoesNotExist:
49
            print "No service named 'pithos' found."
50
        else:
51
            s.name = 'pithos+'
52
            s.save()
53

    
54

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

    
300
    complete_apps = ['im']