3 from south.db import db
\r
4 from south.v2 import SchemaMigration
\r
5 from django.db import models
\r
7 class Migration(SchemaMigration):
\r
9 def forwards(self, orm):
\r
11 # Deleting model 'QuestionRevision'
\r
12 db.delete_table(u'question_revision')
\r
14 # Deleting model 'AnswerRevision'
\r
15 db.delete_table(u'answer_revision')
\r
17 # Deleting field 'Answer.vote_up_count'
\r
18 db.delete_column(u'answer', 'vote_up_count')
\r
20 # Deleting field 'Answer.author'
\r
21 db.delete_column(u'answer', 'author_id')
\r
23 # Deleting field 'Answer.deleted'
\r
24 db.delete_column(u'answer', 'deleted')
\r
26 # Deleting field 'Answer.question'
\r
27 db.delete_column(u'answer', 'question_id')
\r
29 # Deleting field 'Answer.html'
\r
30 db.delete_column(u'answer', 'html')
\r
32 # Deleting field 'Answer.offensive_flag_count'
\r
33 db.delete_column(u'answer', 'offensive_flag_count')
\r
35 # Deleting field 'Answer.deleted_by'
\r
36 db.delete_column(u'answer', 'deleted_by_id')
\r
38 # Deleting field 'Answer.comment_count'
\r
39 db.delete_column(u'answer', 'comment_count')
\r
41 # Deleting field 'Answer.score'
\r
42 db.delete_column(u'answer', 'score')
\r
44 # Deleting field 'Answer.vote_down_count'
\r
45 db.delete_column(u'answer', 'vote_down_count')
\r
47 # Deleting field 'Answer.added_at'
\r
48 db.delete_column(u'answer', 'added_at')
\r
50 # Deleting field 'Answer.last_edited_by'
\r
51 db.delete_column(u'answer', 'last_edited_by_id')
\r
53 # Deleting field 'Answer.deleted_at'
\r
54 db.delete_column(u'answer', 'deleted_at')
\r
56 # Deleting field 'Answer.id'
\r
57 db.delete_column(u'answer', 'id')
\r
59 # Deleting field 'Answer.last_edited_at'
\r
60 db.delete_column(u'answer', 'last_edited_at')
\r
62 # Changing field 'Answer.node_ptr'
\r
63 db.alter_column(u'answer', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True))
\r
64 db.create_primary_key(u'answer', ['node_ptr_id'])
\r
66 # Deleting field 'Question.vote_up_count'
\r
67 db.delete_column(u'question', 'vote_up_count')
\r
69 # Deleting field 'Question.offensive_flag_count'
\r
70 db.delete_column(u'question', 'offensive_flag_count')
\r
72 # Deleting field 'Question.summary'
\r
73 db.delete_column(u'question', 'summary')
\r
75 # Deleting field 'Question.id'
\r
76 db.delete_column(u'question', 'id')
\r
78 # Deleting field 'Question.deleted_at'
\r
79 db.delete_column(u'question', 'deleted_at')
\r
81 # Deleting field 'Question.score'
\r
82 db.delete_column(u'question', 'score')
\r
84 # Deleting field 'Question.author'
\r
85 db.delete_column(u'question', 'author_id')
\r
87 # Deleting field 'Question.comment_count'
\r
88 db.delete_column(u'question', 'comment_count')
\r
90 # Deleting field 'Question.html'
\r
91 db.delete_column(u'question', 'html')
\r
93 # Deleting field 'Question.vote_down_count'
\r
94 db.delete_column(u'question', 'vote_down_count')
\r
96 # Deleting field 'Question.last_edited_by'
\r
97 db.delete_column(u'question', 'last_edited_by_id')
\r
99 # Deleting field 'Question.deleted'
\r
100 db.delete_column(u'question', 'deleted')
\r
102 # Deleting field 'Question.tagnames'
\r
103 db.delete_column(u'question', 'tagnames')
\r
105 # Deleting field 'Question.title'
\r
106 db.delete_column(u'question', 'title')
\r
108 # Deleting field 'Question.added_at'
\r
109 db.delete_column(u'question', 'added_at')
\r
111 # Deleting field 'Question.deleted_by'
\r
112 db.delete_column(u'question', 'deleted_by_id')
\r
114 # Deleting field 'Question.last_edited_at'
\r
115 db.delete_column(u'question', 'last_edited_at')
\r
117 # Removing M2M table for field followed_by on 'Question'
\r
118 db.delete_table('question_followed_by')
\r
120 # Removing M2M table for field tags on 'Question'
\r
121 db.delete_table('question_tags')
\r
123 # Changing field 'Question.node_ptr'
\r
124 db.alter_column(u'question', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True))
\r
125 db.create_primary_key(u'question', ['node_ptr_id'])
\r
128 def backwards(self, orm):
\r
130 # Adding model 'QuestionRevision'
\r
131 db.create_table(u'question_revision', (
\r
132 ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='questionrevisions', to=orm['forum.User'])),
\r
133 ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)),
\r
134 ('text', self.gf('django.db.models.fields.TextField')()),
\r
135 ('title', self.gf('django.db.models.fields.CharField')(max_length=300)),
\r
136 ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['forum.Question'])),
\r
137 ('revised_at', self.gf('django.db.models.fields.DateTimeField')()),
\r
138 ('summary', self.gf('django.db.models.fields.CharField')(max_length=300, blank=True)),
\r
139 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
\r
140 ('revision', self.gf('django.db.models.fields.PositiveIntegerField')()),
\r
142 db.send_create_signal('forum', ['QuestionRevision'])
\r
144 # Adding model 'AnswerRevision'
\r
145 db.create_table(u'answer_revision', (
\r
146 ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='answerrevisions', to=orm['forum.User'])),
\r
147 ('text', self.gf('django.db.models.fields.TextField')()),
\r
148 ('revised_at', self.gf('django.db.models.fields.DateTimeField')()),
\r
149 ('summary', self.gf('django.db.models.fields.CharField')(max_length=300, blank=True)),
\r
150 ('answer', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['forum.Answer'])),
\r
151 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
\r
152 ('revision', self.gf('django.db.models.fields.PositiveIntegerField')()),
\r
154 db.send_create_signal('forum', ['AnswerRevision'])
\r
156 # Adding field 'Answer.vote_up_count'
\r
157 db.add_column(u'answer', 'vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
\r
159 # Adding field 'Answer.author'
\r
160 db.add_column(u'answer', 'author', self.gf('django.db.models.fields.related.ForeignKey')(default=1, related_name='answers', to=orm['forum.User']), keep_default=False)
\r
162 # Adding field 'Answer.deleted'
\r
163 db.add_column(u'answer', 'deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
\r
165 # Adding field 'Answer.question'
\r
166 db.add_column(u'answer', 'question', self.gf('django.db.models.fields.related.ForeignKey')(default=1, related_name='answers', to=orm['forum.Question']), keep_default=False)
\r
168 # Adding field 'Answer.html'
\r
169 db.add_column(u'answer', 'html', self.gf('django.db.models.fields.TextField')(default=1), keep_default=False)
\r
171 # Adding field 'Answer.offensive_flag_count'
\r
172 db.add_column(u'answer', 'offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0), keep_default=False)
\r
174 # Adding field 'Answer.deleted_by'
\r
175 db.add_column(u'answer', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_answers', null=True, to=orm['forum.User'], blank=True), keep_default=False)
\r
177 # Adding field 'Answer.comment_count'
\r
178 db.add_column(u'answer', 'comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0), keep_default=False)
\r
180 # Adding field 'Answer.score'
\r
181 db.add_column(u'answer', 'score', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
\r
183 # Adding field 'Answer.vote_down_count'
\r
184 db.add_column(u'answer', 'vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
\r
186 # Adding field 'Answer.added_at'
\r
187 db.add_column(u'answer', 'added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now), keep_default=False)
\r
189 # Adding field 'Answer.last_edited_by'
\r
190 db.add_column(u'answer', 'last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='last_edited_answers', null=True, to=orm['forum.User'], blank=True), keep_default=False)
\r
192 # Adding field 'Answer.deleted_at'
\r
193 db.add_column(u'answer', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False)
\r
195 # Adding field 'Answer.id'
\r
196 db.add_column(u'answer', 'id', self.gf('django.db.models.fields.AutoField')(default=1, primary_key=True), keep_default=False)
\r
198 # Adding field 'Answer.last_edited_at'
\r
199 db.add_column(u'answer', 'last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False)
\r
201 # Changing field 'Answer.node_ptr'
\r
202 db.alter_column(u'answer', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, null=True))
\r
204 # Adding field 'Question.vote_up_count'
\r
205 db.add_column(u'question', 'vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
\r
207 # Adding field 'Question.offensive_flag_count'
\r
208 db.add_column(u'question', 'offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0), keep_default=False)
\r
210 # Adding field 'Question.summary'
\r
211 db.add_column(u'question', 'summary', self.gf('django.db.models.fields.CharField')(default=1, max_length=180), keep_default=False)
\r
213 # Adding field 'Question.id'
\r
214 db.add_column(u'question', 'id', self.gf('django.db.models.fields.AutoField')(default=1, primary_key=True), keep_default=False)
\r
216 # Adding field 'Question.deleted_at'
\r
217 db.add_column(u'question', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False)
\r
219 # Adding field 'Question.score'
\r
220 db.add_column(u'question', 'score', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
\r
222 # Adding field 'Question.author'
\r
223 db.add_column(u'question', 'author', self.gf('django.db.models.fields.related.ForeignKey')(default=1, related_name='questions', to=orm['forum.User']), keep_default=False)
\r
225 # Adding field 'Question.comment_count'
\r
226 db.add_column(u'question', 'comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0), keep_default=False)
\r
228 # Adding field 'Question.html'
\r
229 db.add_column(u'question', 'html', self.gf('django.db.models.fields.TextField')(default=1), keep_default=False)
\r
231 # Adding field 'Question.vote_down_count'
\r
232 db.add_column(u'question', 'vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
\r
234 # Adding field 'Question.last_edited_by'
\r
235 db.add_column(u'question', 'last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='last_edited_questions', null=True, to=orm['forum.User'], blank=True), keep_default=False)
\r
237 # Adding field 'Question.deleted'
\r
238 db.add_column(u'question', 'deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
\r
240 # Adding field 'Question.tagnames'
\r
241 db.add_column(u'question', 'tagnames', self.gf('django.db.models.fields.CharField')(default=1, max_length=125), keep_default=False)
\r
243 # Adding field 'Question.title'
\r
244 db.add_column(u'question', 'title', self.gf('django.db.models.fields.CharField')(default=1, max_length=300), keep_default=False)
\r
246 # Adding field 'Question.added_at'
\r
247 db.add_column(u'question', 'added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now), keep_default=False)
\r
249 # Adding field 'Question.deleted_by'
\r
250 db.add_column(u'question', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_questions', null=True, to=orm['forum.User'], blank=True), keep_default=False)
\r
252 # Adding field 'Question.last_edited_at'
\r
253 db.add_column(u'question', 'last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False)
\r
255 # Adding M2M table for field followed_by on 'Question'
\r
256 db.create_table(u'question_followed_by', (
\r
257 ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
\r
258 ('question', models.ForeignKey(orm['forum.question'], null=False)),
\r
259 ('user', models.ForeignKey(orm['forum.user'], null=False))
\r
261 db.create_unique(u'question_followed_by', ['question_id', 'user_id'])
\r
263 # Adding M2M table for field tags on 'Question'
\r
264 db.create_table(u'question_tags', (
\r
265 ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
\r
266 ('question', models.ForeignKey(orm['forum.question'], null=False)),
\r
267 ('tag', models.ForeignKey(orm['forum.tag'], null=False))
\r
269 db.create_unique(u'question_tags', ['question_id', 'tag_id'])
\r
271 # Changing field 'Question.node_ptr'
\r
272 db.alter_column(u'question', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, null=True))
\r
277 'Meta': {'object_name': 'Group'},
\r
278 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
279 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
280 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
282 'auth.permission': {
\r
283 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
284 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
285 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
286 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
287 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
290 'Meta': {'object_name': 'User'},
\r
291 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
292 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
293 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
294 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
\r
295 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
296 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
297 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
298 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
299 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
300 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
301 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
302 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
\r
303 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
305 'contenttypes.contenttype': {
\r
306 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
307 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
308 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
309 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
310 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
312 'forum.activity': {
\r
313 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
\r
314 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
315 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
316 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
317 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
318 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
319 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
320 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
322 'forum.anonymousanswer': {
\r
323 'Meta': {'object_name': 'AnonymousAnswer'},
\r
324 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
325 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
326 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
327 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
\r
328 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),
\r
329 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
\r
330 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
331 'text': ('django.db.models.fields.TextField', [], {}),
\r
332 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
334 'forum.anonymousquestion': {
\r
335 'Meta': {'object_name': 'AnonymousQuestion'},
\r
336 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
337 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
338 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
339 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
\r
340 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
\r
341 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
342 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
343 'text': ('django.db.models.fields.TextField', [], {}),
\r
344 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
345 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
348 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},
\r
349 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
350 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
351 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
352 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
\r
353 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
354 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
356 'forum.authkeyuserassociation': {
\r
357 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
358 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
359 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
360 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
361 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
362 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
365 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
\r
366 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
367 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
\r
368 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
369 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
370 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
371 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
372 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
\r
375 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
\r
376 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
377 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
378 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
379 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
380 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
381 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
382 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
383 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
386 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},
\r
387 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
388 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
389 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
390 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
391 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
392 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
393 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),
\r
394 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
395 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
396 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})
\r
398 'forum.favoritequestion': {
\r
399 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
\r
400 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
401 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
402 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
403 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
\r
405 'forum.flaggeditem': {
\r
406 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
\r
407 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
408 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
409 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
410 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
411 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
\r
412 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
\r
414 'forum.keyvalue': {
\r
415 'Meta': {'object_name': 'KeyValue'},
\r
416 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
417 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
418 'value': ('forum.models.utils.PickledObjectField', [], {})
\r
420 'forum.likedcomment': {
\r
421 'Meta': {'object_name': 'LikedComment'},
\r
422 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
423 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
424 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),
\r
425 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
426 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
428 'forum.markedtag': {
\r
429 'Meta': {'object_name': 'MarkedTag'},
\r
430 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
431 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
432 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
433 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
436 'Meta': {'object_name': 'Node'},
\r
437 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
438 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
439 'body': ('django.db.models.fields.TextField', [], {}),
\r
440 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
441 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
442 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
443 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
444 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
445 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
446 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
447 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
448 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
449 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'childs'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
450 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
451 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
452 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
453 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
454 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
455 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
457 'forum.noderevision': {
\r
458 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
459 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
460 'body': ('django.db.models.fields.TextField', [], {}),
\r
461 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
462 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
463 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
\r
464 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
465 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
466 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
467 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
469 'forum.question': {
\r
470 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
\r
471 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
472 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
473 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
\r
474 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
475 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
476 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
477 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
\r
478 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
479 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
480 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),
\r
481 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}),
\r
482 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),
\r
483 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
484 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
485 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
487 'forum.questionsubscription': {
\r
488 'Meta': {'object_name': 'QuestionSubscription'},
\r
489 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
490 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
491 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 12, 30, 8, 362000)'}),
\r
492 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
493 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
496 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
\r
497 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
498 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
499 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
500 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
501 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
502 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
503 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
\r
505 'forum.subscriptionsettings': {
\r
506 'Meta': {'object_name': 'SubscriptionSettings'},
\r
507 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
508 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
509 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
510 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
511 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
512 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
513 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
514 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
515 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
516 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
517 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
518 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
519 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
520 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
521 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
522 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
523 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
524 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
527 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
\r
528 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
529 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
530 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
531 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
532 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
533 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
534 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
535 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
538 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
539 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
540 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
541 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
542 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
543 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
\r
544 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
545 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
546 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
547 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
548 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
549 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
\r
550 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
551 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
552 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
553 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
554 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
556 'forum.validationhash': {
\r
557 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
558 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 12, 30, 22, 477000)'}),
\r
559 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
560 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
561 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
562 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
563 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
566 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},
\r
567 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
568 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
569 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
570 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
\r
571 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
572 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
\r
576 complete_apps = ['forum']
\r