Revision 54bac253

b/snf-astakos-app/astakos/im/migrations/0028_auto__del_field_service_order__del_field_service_url__del_field_servic.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 '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': ('synnefo.lib.db.intdecimalfield.IntDecimalField', [], {'max_digits': '38', 'decimal_places': '0'}),
125
            'export_limit': ('synnefo.lib.db.intdecimalfield.IntDecimalField', [], {'default': '100000000000000000000000000000000L', 'max_digits': '38', 'decimal_places': '0'}),
126
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
127
            'import_limit': ('synnefo.lib.db.intdecimalfield.IntDecimalField', [], {'default': '100000000000000000000000000000000L', 'max_digits': '38', 'decimal_places': '0'}),
128
            'quantity': ('synnefo.lib.db.intdecimalfield.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': ('synnefo.lib.db.intdecimalfield.IntDecimalField', [], {'default': '100000000000000000000000000000000L', 'max_digits': '38', 'decimal_places': '0'}),
252
            'member_export_limit': ('synnefo.lib.db.intdecimalfield.IntDecimalField', [], {'default': '100000000000000000000000000000000L', 'max_digits': '38', 'decimal_places': '0'}),
253
            'member_import_limit': ('synnefo.lib.db.intdecimalfield.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': ('synnefo.lib.db.intdecimalfield.IntDecimalField', [], {'default': '100000000000000000000000000000000L', 'max_digits': '38', 'decimal_places': '0'}),
256
            'project_export_limit': ('synnefo.lib.db.intdecimalfield.IntDecimalField', [], {'default': '100000000000000000000000000000000L', 'max_digits': '38', 'decimal_places': '0'}),
257
            'project_import_limit': ('synnefo.lib.db.intdecimalfield.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': ('synnefo.lib.db.intdecimalfield.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']
b/snf-astakos-app/astakos/im/models.py
122 122
class Service(models.Model):
123 123
    name = models.CharField(_('Name'), max_length=255, unique=True,
124 124
                            db_index=True)
125
    api_url = models.CharField(_('Service API url'), max_length=255)
125
    api_url = models.CharField(_('Service API url'), max_length=255, null=True)
126 126
    auth_token = models.CharField(_('Authentication Token'), max_length=32,
127 127
                                  null=True, blank=True)
128 128
    auth_token_created = models.DateTimeField(_('Token creation date'),

Also available in: Unified diff