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