Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / migrations / 0060_fix_uuids.py @ fa1e77f4

History | View | Annotate | Download (25 kB)

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

    
8

    
9
class Migration(DataMigration):
10

    
11
    def forwards(self, orm):
12
        users = orm.AstakosUser.objects.filter(uuid__isnull=True)
13
        for user in users:
14
            user.uuid = str(uuid.uuid4())
15
            user.save()
16

    
17
    def backwards(self, orm):
18
        "Write your backwards methods here."
19

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

    
306
    complete_apps = ['im']
307
    symmetrical = True