Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / migrations / 0029_auto__del_field_project_is_active__del_field_project_is_modified__del_.py @ 673f8f42

History | View | Annotate | Download (25.2 kB)

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

    
7
class Migration(SchemaMigration):
8

    
9
    def forwards(self, orm):
10
        
11
        # Deleting field 'Project.is_active'
12
        db.delete_column('im_project', 'is_active')
13

    
14
        # Deleting field 'Project.is_modified'
15
        db.delete_column('im_project', 'is_modified')
16

    
17
        # Deleting field 'ProjectMembership.is_active'
18
        db.delete_column('im_projectmembership', 'is_active')
19

    
20
        # Deleting field 'ProjectMembership.pending_application'
21
        db.delete_column('im_projectmembership', 'pending_application_id')
22

    
23
        # Deleting field 'ProjectMembership.pending_serial'
24
        db.delete_column('im_projectmembership', 'pending_serial')
25

    
26
        # Deleting field 'ProjectMembership.application'
27
        db.delete_column('im_projectmembership', 'application_id')
28

    
29
        # Deleting field 'ProjectMembership.is_pending'
30
        db.delete_column('im_projectmembership', 'is_pending')
31

    
32

    
33
    def backwards(self, orm):
34
        
35
        # Adding field 'Project.is_active'
36
        db.add_column('im_project', 'is_active', self.gf('django.db.models.fields.BooleanField')(default=True, db_index=True), keep_default=False)
37

    
38
        # Adding field 'Project.is_modified'
39
        db.add_column('im_project', 'is_modified', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True), keep_default=False)
40

    
41
        # Adding field 'ProjectMembership.is_active'
42
        db.add_column('im_projectmembership', 'is_active', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True), keep_default=False)
43

    
44
        # Adding field 'ProjectMembership.pending_application'
45
        db.add_column('im_projectmembership', 'pending_application', self.gf('django.db.models.fields.related.ForeignKey')(related_name='pending_memberships', null=True, to=orm['im.ProjectApplication']), keep_default=False)
46

    
47
        # Adding field 'ProjectMembership.pending_serial'
48
        db.add_column('im_projectmembership', 'pending_serial', self.gf('django.db.models.fields.BigIntegerField')(null=True, db_index=True), keep_default=False)
49

    
50
        # Adding field 'ProjectMembership.application'
51
        db.add_column('im_projectmembership', 'application', self.gf('django.db.models.fields.related.ForeignKey')(related_name='memberships', null=True, to=orm['im.ProjectApplication']), keep_default=False)
52

    
53
        # Adding field 'ProjectMembership.is_pending'
54
        db.add_column('im_projectmembership', 'is_pending', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True), keep_default=False)
55

    
56

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

    
308
    complete_apps = ['im']