Revision a0b34382

/dev/null
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
        # Removing unique constraint on 'Resource', fields ['name', 'service']
12
        db.delete_unique('im_resource', ['name', 'service_id'])
13

  
14
        # Deleting model 'ResourceMetadata'
15
        db.delete_table('im_resourcemetadata')
16

  
17
        # Removing M2M table for field meta on 'Resource'
18
        db.delete_table('im_resource_meta')
19

  
20
        # Adding unique constraint on 'Resource', fields ['name']
21
        db.create_unique('im_resource', ['name'])
22

  
23

  
24
    def backwards(self, orm):
25
        
26
        # Removing unique constraint on 'Resource', fields ['name']
27
        db.delete_unique('im_resource', ['name'])
28

  
29
        # Adding model 'ResourceMetadata'
30
        db.create_table('im_resourcemetadata', (
31
            ('value', self.gf('django.db.models.fields.CharField')(max_length=255)),
32
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
33
            ('key', self.gf('django.db.models.fields.CharField')(max_length=255, unique=True, db_index=True)),
34
        ))
35
        db.send_create_signal('im', ['ResourceMetadata'])
36

  
37
        # Adding M2M table for field meta on 'Resource'
38
        db.create_table('im_resource_meta', (
39
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
40
            ('resource', models.ForeignKey(orm['im.resource'], null=False)),
41
            ('resourcemetadata', models.ForeignKey(orm['im.resourcemetadata'], null=False))
42
        ))
43
        db.create_unique('im_resource_meta', ['resource_id', 'resourcemetadata_id'])
44

  
45
        # Adding unique constraint on 'Resource', fields ['name', 'service']
46
        db.create_unique('im_resource', ['name', 'service_id'])
47

  
48

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

  
310
    complete_apps = ['im']
b/snf-astakos-app/astakos/im/migrations/0026_auto__del_resourcemetadata__del_field_astakosuserquota_import_limit__d.py
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
        # Removing unique constraint on 'Resource', fields ['name', 'service']
12
        db.delete_unique('im_resource', ['name', 'service_id'])
13

  
14
        # Deleting model 'ResourceMetadata'
15
        db.delete_table('im_resourcemetadata')
16

  
17
        # Deleting field 'AstakosUserQuota.import_limit'
18
        db.delete_column('im_astakosuserquota', 'import_limit')
19

  
20
        # Deleting field 'AstakosUserQuota.export_limit'
21
        db.delete_column('im_astakosuserquota', 'export_limit')
22

  
23
        # Deleting field 'AstakosUserQuota.quantity'
24
        db.delete_column('im_astakosuserquota', 'quantity')
25

  
26
        # Deleting field 'Service.order'
27
        db.delete_column('im_service', 'order')
28

  
29
        # Deleting field 'Service.icon'
30
        db.delete_column('im_service', 'icon')
31

  
32
        # Adding field 'Service.api_url'
33
        db.add_column('im_service', 'api_url', self.gf('django.db.models.fields.CharField')(max_length=255, null=True), keep_default=False)
34

  
35
        # Changing field 'Service.url'
36
        db.alter_column('im_service', 'url', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
37

  
38
        # Deleting field 'Project.is_active'
39
        db.delete_column('im_project', 'is_active')
40

  
41
        # Deleting field 'Project.is_modified'
42
        db.delete_column('im_project', 'is_modified')
43

  
44
        # Deleting field 'ProjectMembership.is_active'
45
        db.delete_column('im_projectmembership', 'is_active')
46

  
47
        # Deleting field 'ProjectMembership.pending_application'
48
        db.delete_column('im_projectmembership', 'pending_application_id')
49

  
50
        # Deleting field 'ProjectMembership.pending_serial'
51
        db.delete_column('im_projectmembership', 'pending_serial')
52

  
53
        # Deleting field 'ProjectMembership.application'
54
        db.delete_column('im_projectmembership', 'application_id')
55

  
56
        # Deleting field 'ProjectMembership.is_pending'
57
        db.delete_column('im_projectmembership', 'is_pending')
58

  
59
        # Deleting field 'Resource.group'
60
        db.delete_column('im_resource', 'group')
61

  
62
        # Removing M2M table for field meta on 'Resource'
63
        db.delete_table('im_resource_meta')
64

  
65
        # Adding unique constraint on 'Resource', fields ['name']
66
        db.create_unique('im_resource', ['name'])
67

  
68
        # Deleting field 'ProjectResourceGrant.member_import_limit'
69
        db.delete_column('im_projectresourcegrant', 'member_import_limit')
70

  
71
        # Deleting field 'ProjectResourceGrant.project_export_limit'
72
        db.delete_column('im_projectresourcegrant', 'project_export_limit')
73

  
74
        # Deleting field 'ProjectResourceGrant.project_import_limit'
75
        db.delete_column('im_projectresourcegrant', 'project_import_limit')
76

  
77
        # Deleting field 'ProjectResourceGrant.member_export_limit'
78
        db.delete_column('im_projectresourcegrant', 'member_export_limit')
79

  
80
        # Changing field 'ProjectResourceGrant.project_capacity'
81
        db.alter_column('im_projectresourcegrant', 'project_capacity', self.gf('snf_django.lib.db.fields.IntDecimalField')(null=True, max_digits=38, decimal_places=0))
82

  
83

  
84
    def backwards(self, orm):
85
        
86
        # Removing unique constraint on 'Resource', fields ['name']
87
        db.delete_unique('im_resource', ['name'])
88

  
89
        # Adding model 'ResourceMetadata'
90
        db.create_table('im_resourcemetadata', (
91
            ('value', self.gf('django.db.models.fields.CharField')(max_length=255)),
92
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
93
            ('key', self.gf('django.db.models.fields.CharField')(max_length=255, unique=True, db_index=True)),
94
        ))
95
        db.send_create_signal('im', ['ResourceMetadata'])
96

  
97
        # Adding field 'AstakosUserQuota.import_limit'
98
        db.add_column('im_astakosuserquota', 'import_limit', self.gf('snf_django.lib.db.fields.IntDecimalField')(default=100000000000000000000000000000000L, max_digits=38, decimal_places=0), keep_default=False)
99

  
100
        # Adding field 'AstakosUserQuota.export_limit'
101
        db.add_column('im_astakosuserquota', 'export_limit', self.gf('snf_django.lib.db.fields.IntDecimalField')(default=100000000000000000000000000000000L, max_digits=38, decimal_places=0), keep_default=False)
102

  
103
        # Adding field 'AstakosUserQuota.quantity'
104
        db.add_column('im_astakosuserquota', 'quantity', self.gf('snf_django.lib.db.fields.IntDecimalField')(default=0, max_digits=38, decimal_places=0), keep_default=False)
105

  
106
        # Adding field 'Service.order'
107
        db.add_column('im_service', 'order', self.gf('django.db.models.fields.PositiveIntegerField')(default=0), keep_default=False)
108

  
109
        # Adding field 'Service.icon'
110
        db.add_column('im_service', 'icon', self.gf('django.db.models.fields.FilePathField')(default='', max_length=100, blank=True), keep_default=False)
111

  
112
        # Deleting field 'Service.api_url'
113
        db.delete_column('im_service', 'api_url')
114

  
115
        # Changing field 'Service.url'
116
        db.alter_column('im_service', 'url', self.gf('django.db.models.fields.FilePathField')(default='', max_length=100))
117

  
118
        # Adding field 'Project.is_active'
119
        db.add_column('im_project', 'is_active', self.gf('django.db.models.fields.BooleanField')(default=True, db_index=True), keep_default=False)
120

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

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

  
127
        # Adding field 'ProjectMembership.pending_application'
128
        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)
129

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

  
133
        # Adding field 'ProjectMembership.application'
134
        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)
135

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

  
139
        # Adding field 'Resource.group'
140
        db.add_column('im_resource', 'group', self.gf('django.db.models.fields.CharField')(max_length=255, null=True), keep_default=False)
141

  
142
        # Adding M2M table for field meta on 'Resource'
143
        db.create_table('im_resource_meta', (
144
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
145
            ('resource', models.ForeignKey(orm['im.resource'], null=False)),
146
            ('resourcemetadata', models.ForeignKey(orm['im.resourcemetadata'], null=False))
147
        ))
148
        db.create_unique('im_resource_meta', ['resource_id', 'resourcemetadata_id'])
149

  
150
        # Adding unique constraint on 'Resource', fields ['name', 'service']
151
        db.create_unique('im_resource', ['name', 'service_id'])
152

  
153
        # Adding field 'ProjectResourceGrant.member_import_limit'
154
        db.add_column('im_projectresourcegrant', 'member_import_limit', self.gf('snf_django.lib.db.fields.IntDecimalField')(default=100000000000000000000000000000000L, max_digits=38, decimal_places=0), keep_default=False)
155

  
156
        # Adding field 'ProjectResourceGrant.project_export_limit'
157
        db.add_column('im_projectresourcegrant', 'project_export_limit', self.gf('snf_django.lib.db.fields.IntDecimalField')(default=100000000000000000000000000000000L, max_digits=38, decimal_places=0), keep_default=False)
158

  
159
        # Adding field 'ProjectResourceGrant.project_import_limit'
160
        db.add_column('im_projectresourcegrant', 'project_import_limit', self.gf('snf_django.lib.db.fields.IntDecimalField')(default=100000000000000000000000000000000L, max_digits=38, decimal_places=0), keep_default=False)
161

  
162
        # Adding field 'ProjectResourceGrant.member_export_limit'
163
        db.add_column('im_projectresourcegrant', 'member_export_limit', self.gf('snf_django.lib.db.fields.IntDecimalField')(default=100000000000000000000000000000000L, max_digits=38, decimal_places=0), keep_default=False)
164

  
165
        # Changing field 'ProjectResourceGrant.project_capacity'
166
        db.alter_column('im_projectresourcegrant', 'project_capacity', self.gf('snf_django.lib.db.fields.IntDecimalField')(max_digits=38, decimal_places=0))
167

  
168

  
169
    models = {
170
        'auth.group': {
171
            'Meta': {'object_name': 'Group'},
172
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
173
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
174
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
175
        },
176
        'auth.permission': {
177
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
178
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
179
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
180
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
181
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
182
        },
183
        'auth.user': {
184
            'Meta': {'object_name': 'User'},
185
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
186
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
187
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
188
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
189
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
190
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
191
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
192
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
193
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
194
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
195
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
196
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
197
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
198
        },
199
        'contenttypes.contenttype': {
200
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
201
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
202
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
203
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
204
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
205
        },
206
        'im.additionalmail': {
207
            'Meta': {'object_name': 'AdditionalMail'},
208
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
209
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
210
            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"})
211
        },
212
        'im.approvalterms': {
213
            'Meta': {'object_name': 'ApprovalTerms'},
214
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
215
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
216
            'location': ('django.db.models.fields.CharField', [], {'max_length': '255'})
217
        },
218
        'im.astakosuser': {
219
            'Meta': {'object_name': 'AstakosUser', '_ormbases': ['auth.User']},
220
            'activation_sent': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
221
            'affiliation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
222
            'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
223
            'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
224
            'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
225
            'date_signed_terms': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
226
            'disturbed_quota': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
227
            'email_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
228
            'has_credits': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
229
            'has_signed_terms': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
230
            'invitations': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
231
            'is_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
232
            'level': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
233
            'policy': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['im.Resource']", 'null': 'True', 'through': "orm['im.AstakosUserQuota']", 'symmetrical': 'False'}),
234
            'provider': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
235
            'third_party_identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
236
            'updated': ('django.db.models.fields.DateTimeField', [], {}),
237
            'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
238
            'uuid': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True'})
239
        },
240
        'im.astakosuserauthprovider': {
241
            'Meta': {'ordering': "('module', 'created')", 'unique_together': "(('identifier', 'module', 'user'),)", 'object_name': 'AstakosUserAuthProvider'},
242
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
243
            'affiliation': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '255', 'null': 'True', 'blank': 'True'}),
244
            'auth_backend': ('django.db.models.fields.CharField', [], {'default': "'astakos'", 'max_length': '255'}),
245
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
246
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
247
            'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
248
            'info_data': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}),
249
            'module': ('django.db.models.fields.CharField', [], {'default': "'local'", 'max_length': '255'}),
250
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_providers'", 'to': "orm['im.AstakosUser']"})
251
        },
252
        'im.astakosuserquota': {
253
            'Meta': {'unique_together': "(('resource', 'user'),)", 'object_name': 'AstakosUserQuota'},
254
            'capacity': ('snf_django.lib.db.fields.IntDecimalField', [], {'max_digits': '38', 'decimal_places': '0'}),
255
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
256
            'resource': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Resource']"}),
257
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"})
258
        },
259
        'im.authproviderpolicyprofile': {
260
            'Meta': {'ordering': "['priority']", 'object_name': 'AuthProviderPolicyProfile'},
261
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
262
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'authpolicy_profiles'", 'symmetrical': 'False', 'to': "orm['auth.Group']"}),
263
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
264
            'is_exclusive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
265
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
266
            'policy_add': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
267
            'policy_automoderate': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
268
            'policy_create': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
269
            'policy_limit': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'}),
270
            'policy_login': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
271
            'policy_remove': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
272
            'policy_required': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
273
            'policy_switch': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
274
            'priority': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
275
            'provider': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
276
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'authpolicy_profiles'", 'symmetrical': 'False', 'to': "orm['im.AstakosUser']"})
277
        },
278
        'im.chain': {
279
            'Meta': {'object_name': 'Chain'},
280
            'chain': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
281
        },
282
        'im.emailchange': {
283
            'Meta': {'object_name': 'EmailChange'},
284
            'activation_key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40', 'db_index': 'True'}),
285
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
286
            'new_email_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
287
            'requested_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
288
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'emailchanges'", 'unique': 'True', 'to': "orm['im.AstakosUser']"})
289
        },
290
        'im.invitation': {
291
            'Meta': {'object_name': 'Invitation'},
292
            'code': ('django.db.models.fields.BigIntegerField', [], {'db_index': 'True'}),
293
            'consumed': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
294
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
295
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
296
            'inviter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invitations_sent'", 'null': 'True', 'to': "orm['im.AstakosUser']"}),
297
            'is_consumed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
298
            'realname': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
299
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
300
        },
301
        'im.pendingthirdpartyuser': {
302
            'Meta': {'unique_together': "(('provider', 'third_party_identifier'),)", 'object_name': 'PendingThirdPartyUser'},
303
            'affiliation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
304
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
305
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
306
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
307
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
308
            'info': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}),
309
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
310
            'provider': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
311
            'third_party_identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
312
            'token': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
313
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
314
        },
315
        'im.project': {
316
            'Meta': {'object_name': 'Project'},
317
            'application': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'project'", 'unique': 'True', 'to': "orm['im.ProjectApplication']"}),
318
            'creation_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
319
            'deactivation_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
320
            'deactivation_reason': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
321
            'id': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'chained_project'", 'unique': 'True', 'primary_key': 'True', 'db_column': "'id'", 'to': "orm['im.Chain']"}),
322
            'last_approval_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
323
            'members': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['im.AstakosUser']", 'through': "orm['im.ProjectMembership']", 'symmetrical': 'False'}),
324
            'name': ('django.db.models.fields.CharField', [], {'max_length': '80', 'unique': 'True', 'null': 'True', 'db_index': 'True'}),
325
            'state': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_index': 'True'})
326
        },
327
        'im.projectapplication': {
328
            'Meta': {'unique_together': "(('chain', 'id'),)", 'object_name': 'ProjectApplication'},
329
            'applicant': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'projects_applied'", 'to': "orm['im.AstakosUser']"}),
330
            'chain': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'chained_apps'", 'db_column': "'chain'", 'to': "orm['im.Chain']"}),
331
            'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
332
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
333
            'end_date': ('django.db.models.fields.DateTimeField', [], {}),
334
            'homepage': ('django.db.models.fields.URLField', [], {'max_length': '255', 'null': 'True'}),
335
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
336
            'issue_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
337
            'limit_on_members_number': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}),
338
            'member_join_policy': ('django.db.models.fields.IntegerField', [], {}),
339
            'member_leave_policy': ('django.db.models.fields.IntegerField', [], {}),
340
            'name': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
341
            'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'projects_owned'", 'to': "orm['im.AstakosUser']"}),
342
            'precursor_application': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.ProjectApplication']", 'null': 'True', 'blank': 'True'}),
343
            'resource_grants': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['im.Resource']", 'null': 'True', 'through': "orm['im.ProjectResourceGrant']", 'blank': 'True'}),
344
            'response': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
345
            'response_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
346
            'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
347
            'state': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'})
348
        },
349
        'im.projectmembership': {
350
            'Meta': {'unique_together': "(('person', 'project'),)", 'object_name': 'ProjectMembership'},
351
            'acceptance_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'db_index': 'True'}),
352
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
353
            'leave_request_date': ('django.db.models.fields.DateField', [], {'null': 'True'}),
354
            'person': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"}),
355
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Project']"}),
356
            'request_date': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
357
            'state': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'})
358
        },
359
        'im.projectmembershiphistory': {
360
            'Meta': {'object_name': 'ProjectMembershipHistory'},
361
            'date': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
362
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
363
            'person': ('django.db.models.fields.BigIntegerField', [], {}),
364
            'project': ('django.db.models.fields.BigIntegerField', [], {}),
365
            'reason': ('django.db.models.fields.IntegerField', [], {}),
366
            'serial': ('django.db.models.fields.BigIntegerField', [], {})
367
        },
368
        'im.projectresourcegrant': {
369
            'Meta': {'unique_together': "(('resource', 'project_application'),)", 'object_name': 'ProjectResourceGrant'},
370
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
371
            'member_capacity': ('snf_django.lib.db.fields.IntDecimalField', [], {'default': '0', 'max_digits': '38', 'decimal_places': '0'}),
372
            'project_application': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.ProjectApplication']", 'null': 'True'}),
373
            'project_capacity': ('snf_django.lib.db.fields.IntDecimalField', [], {'null': 'True', 'max_digits': '38', 'decimal_places': '0'}),
374
            'resource': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Resource']"})
375
        },
376
        'im.resource': {
377
            'Meta': {'object_name': 'Resource'},
378
            'desc': ('django.db.models.fields.TextField', [], {'null': 'True'}),
379
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
380
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
381
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Service']"}),
382
            'unit': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
383
            'uplimit': ('snf_django.lib.db.fields.IntDecimalField', [], {'default': '0', 'max_digits': '38', 'decimal_places': '0'})
384
        },
385
        'im.serial': {
386
            'Meta': {'object_name': 'Serial'},
387
            'serial': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
388
        },
389
        'im.service': {
390
            'Meta': {'object_name': 'Service'},
391
            'api_url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
392
            'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
393
            'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
394
            'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
395
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
396
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'}),
397
            'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'})
398
        },
399
        'im.sessioncatalog': {
400
            'Meta': {'object_name': 'SessionCatalog'},
401
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
402
            'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
403
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'sessions'", 'null': 'True', 'to': "orm['im.AstakosUser']"})
404
        },
405
        'im.usersetting': {
406
            'Meta': {'unique_together': "(('user', 'setting'),)", 'object_name': 'UserSetting'},
407
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
408
            'setting': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
409
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"}),
410
            'value': ('django.db.models.fields.IntegerField', [], {})
411
        }
412
    }
413

  
414
    complete_apps = ['im']
/dev/null
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 'Resource.group'
12
        db.delete_column('im_resource', 'group')
13

  
14
        # Renaming column for 'Resource.service' to match new field type.
15
        db.rename_column('im_resource', 'service_id', 'service')
16
        # Changing field 'Resource.service'
17
        db.alter_column('im_resource', 'service', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
18

  
19
        # Removing index on 'Resource', fields ['service']
20
        db.delete_index('im_resource', ['service_id'])
21

  
22

  
23
    def backwards(self, orm):
24
        
25
        # Adding index on 'Resource', fields ['service']
26
        db.create_index('im_resource', ['service_id'])
27

  
28
        # Adding field 'Resource.group'
29
        db.add_column('im_resource', 'group', self.gf('django.db.models.fields.CharField')(max_length=255, null=True), keep_default=False)
30

  
31
        # User chose to not deal with backwards NULL issues for 'Resource.service'
32
        raise RuntimeError("Cannot reverse this migration. 'Resource.service' and its values cannot be restored.")
33

  
34

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

  
295
    complete_apps = ['im']
/dev/null
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 'Service.order'
12
        db.delete_column('im_service', 'order')
13

  
14
        # Deleting field 'Service.url'
15
        db.delete_column('im_service', 'url')
16

  
17
        # Deleting field 'Service.icon'
18
        db.delete_column('im_service', 'icon')
19

  
20
        # Adding field 'Service.api_url'
21
        db.add_column('im_service', 'api_url', self.gf('django.db.models.fields.CharField')(max_length=255, null=True), keep_default=False)
22

  
23

  
24
    def backwards(self, orm):
25
        
26
        # Adding field 'Service.order'
27
        db.add_column('im_service', 'order', self.gf('django.db.models.fields.PositiveIntegerField')(default=0), keep_default=False)
28

  
29
        # Adding field 'Service.url'
30
        db.add_column('im_service', 'url', self.gf('django.db.models.fields.FilePathField')(default='', max_length=100), keep_default=False)
31

  
32
        # Adding field 'Service.icon'
33
        db.add_column('im_service', 'icon', self.gf('django.db.models.fields.FilePathField')(default='', max_length=100, blank=True), keep_default=False)
34

  
35
        # Deleting field 'Service.api_url'
36
        db.delete_column('im_service', 'api_url')
37

  
38

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

  
297
    complete_apps = ['im']
/dev/null
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': ('snf_django.lib.db.fields.IntDecimalField', [], {'max_digits': '38', 'decimal_places': '0'}),
143
            'export_limit': ('snf_django.lib.db.fields.IntDecimalField', [], {'default': '100000000000000000000000000000000L', 'max_digits': '38', 'decimal_places': '0'}),
144
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
145
            'import_limit': ('snf_django.lib.db.fields.IntDecimalField', [], {'default': '100000000000000000000000000000000L', 'max_digits': '38', 'decimal_places': '0'}),
146
            'quantity': ('snf_django.lib.db.fields.IntDecimalField', [], {'default': '0', 'max_digits': '38', 'decimal_places': '0'}),
147
            'resource': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Resource']"}),
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff