Revision 0cdc5cc5

b/snf-astakos-app/astakos/im/migrations/0031_auto__del_field_projectresourcegrant_member_import_limit__del_field_pr.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
        # Deleting field 'ProjectResourceGrant.member_import_limit'
12
        db.delete_column('im_projectresourcegrant', 'member_import_limit')
13

  
14
        # Deleting field 'ProjectResourceGrant.project_export_limit'
15
        db.delete_column('im_projectresourcegrant', 'project_export_limit')
16

  
17
        # Deleting field 'ProjectResourceGrant.project_import_limit'
18
        db.delete_column('im_projectresourcegrant', 'project_import_limit')
19

  
20
        # Deleting field 'ProjectResourceGrant.member_export_limit'
21
        db.delete_column('im_projectresourcegrant', 'member_export_limit')
22

  
23
        # Changing field 'ProjectResourceGrant.project_capacity'
24
        db.alter_column('im_projectresourcegrant', 'project_capacity', self.gf('synnefo.lib.db.intdecimalfield.IntDecimalField')(null=True, max_digits=38, decimal_places=0))
25

  
26

  
27
    def backwards(self, orm):
28
        
29
        # Adding field 'ProjectResourceGrant.member_import_limit'
30
        db.add_column('im_projectresourcegrant', 'member_import_limit', self.gf('synnefo.lib.db.intdecimalfield.IntDecimalField')(default=100000000000000000000000000000000L, max_digits=38, decimal_places=0), keep_default=False)
31

  
32
        # Adding field 'ProjectResourceGrant.project_export_limit'
33
        db.add_column('im_projectresourcegrant', 'project_export_limit', self.gf('synnefo.lib.db.intdecimalfield.IntDecimalField')(default=100000000000000000000000000000000L, max_digits=38, decimal_places=0), keep_default=False)
34

  
35
        # Adding field 'ProjectResourceGrant.project_import_limit'
36
        db.add_column('im_projectresourcegrant', 'project_import_limit', self.gf('synnefo.lib.db.intdecimalfield.IntDecimalField')(default=100000000000000000000000000000000L, max_digits=38, decimal_places=0), keep_default=False)
37

  
38
        # Adding field 'ProjectResourceGrant.member_export_limit'
39
        db.add_column('im_projectresourcegrant', 'member_export_limit', self.gf('synnefo.lib.db.intdecimalfield.IntDecimalField')(default=100000000000000000000000000000000L, max_digits=38, decimal_places=0), keep_default=False)
40

  
41
        # Changing field 'ProjectResourceGrant.project_capacity'
42
        db.alter_column('im_projectresourcegrant', 'project_capacity', self.gf('synnefo.lib.db.intdecimalfield.IntDecimalField')(max_digits=38, decimal_places=0))
43

  
44

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

  
289
    complete_apps = ['im']
b/snf-astakos-app/astakos/im/models.py
77 77
from synnefo.lib.db.managers import ForUpdateManager
78 78
from synnefo.lib.ordereddict import OrderedDict
79 79

  
80
from astakos.quotaholder.api import QH_PRACTICALLY_INFINITE
81 80
from synnefo.lib.db.intdecimalfield import intDecimalField
82 81
from synnefo.util.text import uenc, udec
83 82
from astakos.im import presentation
......
1686 1685
    resource                =   models.ForeignKey(Resource)
1687 1686
    project_application     =   models.ForeignKey(ProjectApplication,
1688 1687
                                                  null=True)
1689
    project_capacity        =   intDecimalField(default=QH_PRACTICALLY_INFINITE)
1690
    project_import_limit    =   intDecimalField(default=QH_PRACTICALLY_INFINITE)
1691
    project_export_limit    =   intDecimalField(default=QH_PRACTICALLY_INFINITE)
1692
    member_capacity         =   intDecimalField(default=QH_PRACTICALLY_INFINITE)
1693
    member_import_limit     =   intDecimalField(default=QH_PRACTICALLY_INFINITE)
1694
    member_export_limit     =   intDecimalField(default=QH_PRACTICALLY_INFINITE)
1688
    project_capacity        =   intDecimalField(null=True)
1689
    member_capacity         =   intDecimalField(default=0)
1695 1690

  
1696 1691
    objects = ExtendedManager()
1697 1692

  

Also available in: Unified diff