| author | Production Moz <dev@sopinspace.com> |
| Wed, 26 Jun 2013 23:43:08 +0200 | |
| changeset 515 | 0be906e586e6 |
| parent 29 | 644cf0d39b25 |
| child 520 | 0228f30668f1 |
| permissions | -rw-r--r-- |
| 29 | 1 |
|
2 |
from south.db import db |
|
3 |
from django.db import models |
|
4 |
from cm.models import * |
|
5 |
||
6 |
class Migration: |
|
7 |
||
8 |
def forwards(self, orm): |
|
9 |
||
10 |
# Adding model 'Notification' |
|
11 |
db.create_table('cm_notification', ( |
|
12 |
('id', orm['cm.Notification:id']), |
|
13 |
('key', orm['cm.Notification:key']), |
|
14 |
('adminkey', orm['cm.Notification:adminkey']), |
|
15 |
('user', orm['cm.Notification:user']), |
|
16 |
('name', orm['cm.Notification:name']), |
|
17 |
('email', orm['cm.Notification:email']), |
|
18 |
('text', orm['cm.Notification:text']), |
|
19 |
('type', orm['cm.Notification:type']), |
|
20 |
('active', orm['cm.Notification:active']), |
|
21 |
)) |
|
22 |
db.send_create_signal('cm', ['Notification']) |
|
23 |
||
24 |
# Adding model 'Activity' |
|
25 |
db.create_table('cm_activity', ( |
|
26 |
('id', orm['cm.Activity:id']), |
|
27 |
('created', orm['cm.Activity:created']), |
|
28 |
('originator_user', orm['cm.Activity:originator_user']), |
|
29 |
('text', orm['cm.Activity:text']), |
|
30 |
('text_version', orm['cm.Activity:text_version']), |
|
31 |
('comment', orm['cm.Activity:comment']), |
|
32 |
('user', orm['cm.Activity:user']), |
|
33 |
('type', orm['cm.Activity:type']), |
|
34 |
('ip', orm['cm.Activity:ip']), |
|
35 |
)) |
|
36 |
db.send_create_signal('cm', ['Activity']) |
|
37 |
||
38 |
# Adding model 'Comment' |
|
39 |
db.create_table('cm_comment', ( |
|
40 |
('id', orm['cm.Comment:id']), |
|
41 |
('key', orm['cm.Comment:key']), |
|
42 |
('adminkey', orm['cm.Comment:adminkey']), |
|
43 |
('deleted', orm['cm.Comment:deleted']), |
|
44 |
('state', orm['cm.Comment:state']), |
|
45 |
('user', orm['cm.Comment:user']), |
|
46 |
('name', orm['cm.Comment:name']), |
|
47 |
('email', orm['cm.Comment:email']), |
|
48 |
('modified', orm['cm.Comment:modified']), |
|
49 |
('created', orm['cm.Comment:created']), |
|
50 |
('text_version', orm['cm.Comment:text_version']), |
|
51 |
('reply_to', orm['cm.Comment:reply_to']), |
|
52 |
('title', orm['cm.Comment:title']), |
|
53 |
('content', orm['cm.Comment:content']), |
|
54 |
('content_html', orm['cm.Comment:content_html']), |
|
55 |
('format', orm['cm.Comment:format']), |
|
56 |
('tags', orm['cm.Comment:tags']), |
|
57 |
('start_wrapper', orm['cm.Comment:start_wrapper']), |
|
58 |
('end_wrapper', orm['cm.Comment:end_wrapper']), |
|
59 |
('start_offset', orm['cm.Comment:start_offset']), |
|
60 |
('end_offset', orm['cm.Comment:end_offset']), |
|
|
515
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
61 |
('category', orm['cm.Comment:category']), |
| 29 | 62 |
)) |
63 |
db.send_create_signal('cm', ['Comment']) |
|
64 |
||
65 |
# Adding model 'Configuration' |
|
66 |
db.create_table('cm_configuration', ( |
|
67 |
('id', orm['cm.Configuration:id']), |
|
68 |
('key', orm['cm.Configuration:key']), |
|
69 |
('raw_value', orm['cm.Configuration:raw_value']), |
|
70 |
)) |
|
71 |
db.send_create_signal('cm', ['Configuration']) |
|
72 |
||
73 |
# Adding model 'UserRole' |
|
74 |
db.create_table('cm_userrole', ( |
|
75 |
('id', orm['cm.UserRole:id']), |
|
76 |
('role', orm['cm.UserRole:role']), |
|
77 |
('user', orm['cm.UserRole:user']), |
|
78 |
('text', orm['cm.UserRole:text']), |
|
79 |
)) |
|
80 |
db.send_create_signal('cm', ['UserRole']) |
|
81 |
||
82 |
# Adding model 'Attachment' |
|
83 |
db.create_table('cm_attachment', ( |
|
84 |
('id', orm['cm.Attachment:id']), |
|
85 |
('key', orm['cm.Attachment:key']), |
|
86 |
('adminkey', orm['cm.Attachment:adminkey']), |
|
87 |
('data', orm['cm.Attachment:data']), |
|
88 |
('text_version', orm['cm.Attachment:text_version']), |
|
89 |
)) |
|
90 |
db.send_create_signal('cm', ['Attachment']) |
|
91 |
||
92 |
# Adding model 'Email' |
|
93 |
db.create_table('cm_email', ( |
|
94 |
('id', orm['cm.Email:id']), |
|
95 |
('created', orm['cm.Email:created']), |
|
96 |
('subject', orm['cm.Email:subject']), |
|
97 |
('body', orm['cm.Email:body']), |
|
98 |
('from_email', orm['cm.Email:from_email']), |
|
99 |
('to', orm['cm.Email:to']), |
|
100 |
('bcc', orm['cm.Email:bcc']), |
|
101 |
('message', orm['cm.Email:message']), |
|
102 |
)) |
|
103 |
db.send_create_signal('cm', ['Email']) |
|
104 |
||
105 |
# Adding model 'Text' |
|
106 |
db.create_table('cm_text', ( |
|
107 |
('id', orm['cm.Text:id']), |
|
108 |
('key', orm['cm.Text:key']), |
|
109 |
('adminkey', orm['cm.Text:adminkey']), |
|
110 |
('deleted', orm['cm.Text:deleted']), |
|
111 |
('state', orm['cm.Text:state']), |
|
112 |
('user', orm['cm.Text:user']), |
|
113 |
('name', orm['cm.Text:name']), |
|
114 |
('email', orm['cm.Text:email']), |
|
115 |
('modified', orm['cm.Text:modified']), |
|
116 |
('created', orm['cm.Text:created']), |
|
117 |
('private_feed_key', orm['cm.Text:private_feed_key']), |
|
118 |
('last_text_version', orm['cm.Text:last_text_version']), |
|
119 |
('title', orm['cm.Text:title']), |
|
120 |
)) |
|
121 |
db.send_create_signal('cm', ['Text']) |
|
122 |
||
123 |
# Adding model 'TextVersion' |
|
124 |
db.create_table('cm_textversion', ( |
|
125 |
('id', orm['cm.TextVersion:id']), |
|
126 |
('user', orm['cm.TextVersion:user']), |
|
127 |
('name', orm['cm.TextVersion:name']), |
|
128 |
('email', orm['cm.TextVersion:email']), |
|
129 |
('modified', orm['cm.TextVersion:modified']), |
|
130 |
('created', orm['cm.TextVersion:created']), |
|
131 |
('title', orm['cm.TextVersion:title']), |
|
132 |
('format', orm['cm.TextVersion:format']), |
|
133 |
('content', orm['cm.TextVersion:content']), |
|
134 |
('tags', orm['cm.TextVersion:tags']), |
|
135 |
('note', orm['cm.TextVersion:note']), |
|
136 |
('mod_posteriori', orm['cm.TextVersion:mod_posteriori']), |
|
137 |
('text', orm['cm.TextVersion:text']), |
|
|
515
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
138 |
('category_1', orm['cm.TextVersion:category_1']), |
|
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
139 |
('category_2', orm['cm.TextVersion:category_2']), |
|
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
140 |
('category_3', orm['cm.TextVersion:category_3']), |
|
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
141 |
('category_4', orm['cm.TextVersion:category_4']), |
|
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
142 |
('category_5', orm['cm.TextVersion:category_5']), |
| 29 | 143 |
)) |
144 |
db.send_create_signal('cm', ['TextVersion']) |
|
145 |
||
146 |
# Adding model 'UserProfile' |
|
147 |
db.create_table('cm_userprofile', ( |
|
148 |
('id', orm['cm.UserProfile:id']), |
|
149 |
('key', orm['cm.UserProfile:key']), |
|
150 |
('adminkey', orm['cm.UserProfile:adminkey']), |
|
151 |
('modified', orm['cm.UserProfile:modified']), |
|
152 |
('created', orm['cm.UserProfile:created']), |
|
153 |
('user', orm['cm.UserProfile:user']), |
|
154 |
('allow_contact', orm['cm.UserProfile:allow_contact']), |
|
155 |
('preferred_language', orm['cm.UserProfile:preferred_language']), |
|
156 |
('is_temp', orm['cm.UserProfile:is_temp']), |
|
157 |
('is_email_error', orm['cm.UserProfile:is_email_error']), |
|
158 |
('is_suspended', orm['cm.UserProfile:is_suspended']), |
|
159 |
)) |
|
160 |
db.send_create_signal('cm', ['UserProfile']) |
|
161 |
||
162 |
# Adding model 'Role' |
|
163 |
db.create_table('cm_role', ( |
|
164 |
('id', orm['cm.Role:id']), |
|
165 |
('name', orm['cm.Role:name']), |
|
166 |
('description', orm['cm.Role:description']), |
|
167 |
('global_scope', orm['cm.Role:global_scope']), |
|
168 |
('anon', orm['cm.Role:anon']), |
|
169 |
)) |
|
170 |
db.send_create_signal('cm', ['Role']) |
|
171 |
||
172 |
# Adding ManyToManyField 'Role.permissions' |
|
173 |
db.create_table('cm_role_permissions', ( |
|
174 |
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), |
|
175 |
('role', models.ForeignKey(orm.Role, null=False)), |
|
176 |
('permission', models.ForeignKey(orm['auth.Permission'], null=False)) |
|
177 |
)) |
|
178 |
||
179 |
# Creating unique_together for [role, user, text] on UserRole. |
|
180 |
db.create_unique('cm_userrole', ['role_id', 'user_id', 'text_id']) |
|
181 |
||
182 |
||
183 |
||
184 |
def backwards(self, orm): |
|
185 |
||
186 |
# Deleting unique_together for [role, user, text] on UserRole. |
|
187 |
db.delete_unique('cm_userrole', ['role_id', 'user_id', 'text_id']) |
|
188 |
||
189 |
# Deleting model 'Notification' |
|
190 |
db.delete_table('cm_notification') |
|
191 |
||
192 |
# Deleting model 'Activity' |
|
193 |
db.delete_table('cm_activity') |
|
194 |
||
195 |
# Deleting model 'Comment' |
|
196 |
db.delete_table('cm_comment') |
|
197 |
||
198 |
# Deleting model 'Configuration' |
|
199 |
db.delete_table('cm_configuration') |
|
200 |
||
201 |
# Deleting model 'UserRole' |
|
202 |
db.delete_table('cm_userrole') |
|
203 |
||
204 |
# Deleting model 'Attachment' |
|
205 |
db.delete_table('cm_attachment') |
|
206 |
||
207 |
# Deleting model 'Email' |
|
208 |
db.delete_table('cm_email') |
|
209 |
||
210 |
# Deleting model 'Text' |
|
211 |
db.delete_table('cm_text') |
|
212 |
||
213 |
# Deleting model 'TextVersion' |
|
214 |
db.delete_table('cm_textversion') |
|
215 |
||
216 |
# Deleting model 'UserProfile' |
|
217 |
db.delete_table('cm_userprofile') |
|
218 |
||
219 |
# Deleting model 'Role' |
|
220 |
db.delete_table('cm_role') |
|
221 |
||
222 |
# Dropping ManyToManyField 'Role.permissions' |
|
223 |
db.delete_table('cm_role_permissions') |
|
224 |
||
225 |
||
226 |
||
227 |
models = { |
|
228 |
'auth.group': { |
|
229 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
230 |
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), |
|
231 |
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) |
|
232 |
}, |
|
233 |
'auth.permission': { |
|
234 |
'Meta': {'unique_together': "(('content_type', 'codename'),)"}, |
|
235 |
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
236 |
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), |
|
237 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
238 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
|
239 |
}, |
|
240 |
'auth.user': { |
|
241 |
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
|
242 |
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
|
243 |
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
|
244 |
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), |
|
245 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
246 |
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), |
|
247 |
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
|
248 |
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
|
249 |
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
|
250 |
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
|
251 |
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
|
252 |
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), |
|
253 |
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '75'}) |
|
254 |
}, |
|
255 |
'cm.activity': { |
|
256 |
'comment': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['cm.Comment']", 'null': 'True', 'blank': 'True'}), |
|
257 |
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
258 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
259 |
'ip': ('django.db.models.fields.IPAddressField', [], {'default': 'None', 'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
260 |
'originator_user': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'originator_activity'", 'null': 'True', 'blank': 'True', 'to': "orm['auth.User']"}), |
|
261 |
'text': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['cm.Text']", 'null': 'True', 'blank': 'True'}), |
|
262 |
'text_version': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['cm.TextVersion']", 'null': 'True', 'blank': 'True'}), |
|
263 |
'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}), |
|
264 |
'user': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}) |
|
265 |
}, |
|
266 |
'cm.attachment': { |
|
267 |
'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}), |
|
268 |
'data': ('django.db.models.fields.files.FileField', [], {'max_length': '1000'}), |
|
269 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
270 |
'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}), |
|
271 |
'text_version': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.TextVersion']"}) |
|
272 |
}, |
|
273 |
'cm.comment': { |
|
274 |
'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}), |
|
|
515
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
275 |
'category': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}), |
| 29 | 276 |
'content': ('django.db.models.fields.TextField', [], {}), |
277 |
'content_html': ('django.db.models.fields.TextField', [], {}), |
|
278 |
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
279 |
'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}), |
|
280 |
'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), |
|
281 |
'end_offset': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), |
|
282 |
'end_wrapper': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), |
|
283 |
'format': ('django.db.models.fields.CharField', [], {'default': "'markdown'", 'max_length': '20'}), |
|
284 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
285 |
'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}), |
|
286 |
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
287 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), |
|
288 |
'reply_to': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Comment']", 'null': 'True', 'blank': 'True'}), |
|
289 |
'start_offset': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), |
|
290 |
'start_wrapper': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), |
|
291 |
'state': ('django.db.models.fields.CharField', [], {'max_length': '16'}), |
|
292 |
'tags': ('tagging.fields.TagField', [], {}), |
|
293 |
'text_version': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.TextVersion']"}), |
|
294 |
'title': ('django.db.models.fields.TextField', [], {}), |
|
295 |
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}) |
|
296 |
}, |
|
297 |
'cm.configuration': { |
|
298 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
299 |
'key': ('django.db.models.fields.TextField', [], {}), |
|
300 |
'raw_value': ('django.db.models.fields.TextField', [], {}) |
|
301 |
}, |
|
302 |
'cm.email': { |
|
303 |
'bcc': ('django.db.models.fields.TextField', [], {}), |
|
304 |
'body': ('django.db.models.fields.TextField', [], {}), |
|
305 |
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
306 |
'from_email': ('django.db.models.fields.TextField', [], {}), |
|
307 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
308 |
'message': ('django.db.models.fields.TextField', [], {}), |
|
309 |
'subject': ('django.db.models.fields.TextField', [], {}), |
|
310 |
'to': ('django.db.models.fields.TextField', [], {}) |
|
311 |
}, |
|
312 |
'cm.notification': { |
|
313 |
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), |
|
314 |
'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}), |
|
315 |
'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), |
|
316 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
317 |
'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}), |
|
318 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), |
|
319 |
'text': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Text']", 'null': 'True', 'blank': 'True'}), |
|
320 |
'type': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}), |
|
321 |
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}) |
|
322 |
}, |
|
323 |
'cm.role': { |
|
324 |
'anon': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
|
325 |
'description': ('django.db.models.fields.TextField', [], {}), |
|
326 |
'global_scope': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
|
327 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
328 |
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'}), |
|
329 |
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']"}) |
|
330 |
}, |
|
331 |
'cm.text': { |
|
332 |
'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}), |
|
333 |
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
334 |
'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}), |
|
335 |
'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), |
|
336 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
337 |
'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}), |
|
338 |
'last_text_version': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'related_text'", 'null': 'True', 'to': "orm['cm.TextVersion']"}), |
|
339 |
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
340 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), |
|
341 |
'private_feed_key': ('django.db.models.fields.CharField', [], {'null': 'True', 'default': 'None', 'max_length': '20', 'blank': 'True', 'unique': 'True', 'db_index': 'True'}), |
|
342 |
'state': ('django.db.models.fields.CharField', [], {'max_length': '16'}), |
|
343 |
'title': ('django.db.models.fields.TextField', [], {}), |
|
344 |
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}) |
|
345 |
}, |
|
346 |
'cm.textversion': { |
|
|
515
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
347 |
'category_1': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}), |
|
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
348 |
'category_2': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}), |
|
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
349 |
'category_3': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}), |
|
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
350 |
'category_4': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}), |
|
0be906e586e6
Fix south migration problem caused by 0003_update_keys_to_textversion using TextVersion model which is updated only in 0010_auto__add_field_textversion_category_1__add_field_textversion_category, same with 0007_populate_id_key_in_comments using Comment model updated in 0011_auto__add_field_comment_category.
Production Moz <dev@sopinspace.com>
parents:
29
diff
changeset
|
351 |
'category_5': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}), |
| 29 | 352 |
'content': ('django.db.models.fields.TextField', [], {}), |
353 |
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
354 |
'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), |
|
355 |
'format': ('django.db.models.fields.CharField', [], {'default': "'markdown'", 'max_length': '20'}), |
|
356 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
357 |
'mod_posteriori': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), |
|
358 |
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
359 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), |
|
360 |
'note': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), |
|
361 |
'tags': ('tagging.fields.TagField', [], {'max_length': '1000'}), |
|
362 |
'text': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Text']"}), |
|
363 |
'title': ('django.db.models.fields.TextField', [], {}), |
|
364 |
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}) |
|
365 |
}, |
|
366 |
'cm.userprofile': { |
|
367 |
'adminkey': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}), |
|
368 |
'allow_contact': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), |
|
369 |
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
370 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
371 |
'is_email_error': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
|
372 |
'is_suspended': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
|
373 |
'is_temp': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
|
374 |
'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'db_index': 'True'}), |
|
375 |
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
376 |
'preferred_language': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '2'}), |
|
377 |
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'unique': 'True'}) |
|
378 |
}, |
|
379 |
'cm.userrole': { |
|
380 |
'Meta': {'unique_together': "(('role', 'user', 'text'),)"}, |
|
381 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
382 |
'role': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Role']", 'null': 'True', 'blank': 'True'}), |
|
383 |
'text': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cm.Text']", 'null': 'True', 'blank': 'True'}), |
|
384 |
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}) |
|
385 |
}, |
|
386 |
'contenttypes.contenttype': { |
|
387 |
'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"}, |
|
388 |
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
389 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
390 |
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
391 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
|
392 |
} |
|
393 |
} |
|
394 |
||
395 |
complete_apps = ['cm'] |