3 from south.db import db
\r
4 from south.v2 import DataMigration
\r
5 from django.db import models
\r
6 from forum.migrations import ProgressBar
\r
8 class Migration(DataMigration):
\r
10 def forwards(self, orm):
\r
11 #Converting question revisions
\r
12 qr_count = orm.QuestionRevision.objects.all().count()
\r
13 print "\nConverting %d question revisions:" % qr_count
\r
14 progress = ProgressBar(qr_count)
\r
16 for q in orm.QuestionRevision.objects.order_by('id'):
\r
17 revision = orm.NodeRevision(
\r
18 node=q.question.node_ptr,
\r
21 tagnames=q.tagnames,
\r
22 revision=q.revision,
\r
24 revised_at=q.revised_at,
\r
34 #Converting answer revisions
\r
35 ar_count = orm.AnswerRevision.objects.all().count()
\r
36 print "\nConverting %d answer revisions:" % ar_count
\r
37 progress = ProgressBar(ar_count)
\r
39 for a in orm.AnswerRevision.objects.order_by('id'):
\r
40 revision = orm.NodeRevision(
\r
42 node=a.answer.node_ptr,
\r
43 revision=a.revision,
\r
45 revised_at=a.revised_at,
\r
55 def backwards(self, orm):
\r
56 "Write your backwards methods here."
\r
60 'Meta': {'object_name': 'Group'},
\r
61 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
62 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
63 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
65 'auth.permission': {
\r
66 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
67 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
68 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
69 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
70 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
73 'Meta': {'object_name': 'User'},
\r
74 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
75 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
76 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
77 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
\r
78 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
79 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
80 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
81 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
82 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
83 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
84 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
85 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
\r
86 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
88 'contenttypes.contenttype': {
\r
89 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
90 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
91 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
92 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
93 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
96 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
\r
97 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
98 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
99 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
100 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
101 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
102 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
103 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
105 'forum.anonymousanswer': {
\r
106 'Meta': {'object_name': 'AnonymousAnswer'},
\r
107 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
108 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
109 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
110 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
\r
111 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),
\r
112 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
\r
113 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
114 'text': ('django.db.models.fields.TextField', [], {}),
\r
115 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
117 'forum.anonymousquestion': {
\r
118 'Meta': {'object_name': 'AnonymousQuestion'},
\r
119 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
120 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
121 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
122 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
\r
123 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
\r
124 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
125 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
126 'text': ('django.db.models.fields.TextField', [], {}),
\r
127 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
128 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
131 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},
\r
132 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
133 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
134 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
135 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
136 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}),
\r
137 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
138 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
139 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
140 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
141 'html': ('django.db.models.fields.TextField', [], {}),
\r
142 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
143 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
144 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
145 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}),
\r
146 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
147 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}),
\r
148 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
149 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
150 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
151 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
152 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
154 'forum.answerrevision': {
\r
155 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"},
\r
156 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}),
\r
157 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}),
\r
158 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
159 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
\r
160 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
161 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
\r
162 'text': ('django.db.models.fields.TextField', [], {})
\r
164 'forum.authkeyuserassociation': {
\r
165 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
166 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
167 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
168 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
169 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
170 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
173 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
\r
174 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
175 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
\r
176 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
177 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
178 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
179 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
180 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
\r
183 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
\r
184 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
185 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
186 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
187 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
188 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
189 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
190 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
191 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
194 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},
\r
195 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
196 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
197 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
198 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
199 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
200 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
201 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),
\r
202 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
203 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
204 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})
\r
206 'forum.favoritequestion': {
\r
207 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
\r
208 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
209 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
210 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
211 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
\r
213 'forum.flaggeditem': {
\r
214 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
\r
215 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
216 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
217 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
218 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
219 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
\r
220 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
\r
222 'forum.keyvalue': {
\r
223 'Meta': {'object_name': 'KeyValue'},
\r
224 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
225 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
226 'value': ('forum.models.utils.PickledObjectField', [], {})
\r
228 'forum.likedcomment': {
\r
229 'Meta': {'object_name': 'LikedComment'},
\r
230 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
231 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
232 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),
\r
233 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
234 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
236 'forum.markedtag': {
\r
237 'Meta': {'object_name': 'MarkedTag'},
\r
238 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
239 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
240 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
241 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
244 'Meta': {'object_name': 'Node'},
\r
245 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
246 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
247 'body': ('django.db.models.fields.TextField', [], {}),
\r
248 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
249 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
250 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
251 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
252 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
253 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
254 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
255 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
256 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
257 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'childs'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
258 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
259 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
260 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
261 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
262 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
263 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
265 'forum.noderevision': {
\r
266 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
267 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
268 'body': ('django.db.models.fields.TextField', [], {}),
\r
269 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
270 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
271 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
\r
272 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
273 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
274 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
275 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
277 'forum.question': {
\r
278 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
\r
279 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
280 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
281 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
282 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}),
\r
283 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
\r
284 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
285 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
286 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
287 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
288 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
289 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
290 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
291 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
\r
292 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
293 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}),
\r
294 'html': ('django.db.models.fields.TextField', [], {}),
\r
295 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
296 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
297 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),
\r
298 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
299 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
300 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}),
\r
301 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
302 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
303 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
304 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
305 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}),
\r
306 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
307 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
308 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
309 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
310 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
311 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
313 'forum.questionrevision': {
\r
314 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"},
\r
315 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}),
\r
316 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
317 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}),
\r
318 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
\r
319 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
320 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
\r
321 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
322 'text': ('django.db.models.fields.TextField', [], {}),
\r
323 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
325 'forum.questionsubscription': {
\r
326 'Meta': {'object_name': 'QuestionSubscription'},
\r
327 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
328 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
329 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 12, 14, 26, 755000)'}),
\r
330 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
331 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
334 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
\r
335 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
336 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
337 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
338 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
339 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
340 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
341 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
\r
343 'forum.subscriptionsettings': {
\r
344 'Meta': {'object_name': 'SubscriptionSettings'},
\r
345 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
346 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
347 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
348 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
349 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
350 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
351 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
352 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
353 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
354 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
355 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
356 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
357 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
358 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
359 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
360 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
361 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
362 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
365 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
\r
366 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
367 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
368 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
369 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
370 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
371 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
372 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
373 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
376 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
377 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
378 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
379 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
380 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
381 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
\r
382 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
383 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
384 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
385 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
386 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
387 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
\r
388 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
389 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
390 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
391 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
392 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
394 'forum.validationhash': {
\r
395 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
396 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 12, 14, 35, 357000)'}),
\r
397 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
398 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
399 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
400 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
401 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
404 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},
\r
405 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
406 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
407 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
408 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
\r
409 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
410 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
\r
414 complete_apps = ['forum']
\r