3 from south.db import db
4 from south.v2 import DataMigration
5 from django.db import models
6 from forum.migrations import ProgressBar
8 class Migration(DataMigration):
10 def forwards(self, orm):
11 q_count = orm.Node.objects.filter(node_type="question").count()
12 print "\nConverting %d questions:" % q_count
13 progress = ProgressBar(q_count)
15 for n in orm.Node.objects.filter(node_type="question"):
16 q = orm.Question.objects.get(node_ptr=n)
18 accepted = list(orm.Answer.objects.filter(node_ptr__parent=n, accepted=True))
21 accepted = accepted[0]
22 q.accepted_answer = accepted
24 q.answer_accepted = False
33 def backwards(self, orm):
34 "Write your backwards methods here."
38 'Meta': {'object_name': 'Group'},
39 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
41 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
44 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
45 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
46 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
47 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
51 'Meta': {'object_name': 'User'},
52 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
53 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
54 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
55 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
56 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
58 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
59 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
60 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
61 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
62 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
63 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
64 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
66 'contenttypes.contenttype': {
67 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
68 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
69 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
71 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
74 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
75 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
76 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
77 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
78 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
80 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
81 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
83 'forum.anonymousnode': {
84 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']},
85 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
86 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
87 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"})
90 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},
91 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
92 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
93 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
94 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
95 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
96 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
98 'forum.authkeyuserassociation': {
99 'Meta': {'object_name': 'AuthKeyUserAssociation'},
100 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
101 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
102 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
103 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
104 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
107 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
108 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
109 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
110 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
111 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
113 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
114 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
117 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
118 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
119 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
120 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
121 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
122 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
123 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
124 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
125 'type': ('django.db.models.fields.SmallIntegerField', [], {})
128 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},
129 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
130 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
131 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
132 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
133 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),
134 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
135 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),
136 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}),
137 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
138 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})
140 'forum.favoritequestion': {
141 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
142 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
143 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
144 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
145 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
147 'forum.flaggeditem': {
148 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
149 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
150 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
151 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
152 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}),
153 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
154 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
157 'Meta': {'object_name': 'KeyValue'},
158 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
159 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
160 'value': ('forum.models.utils.PickledObjectField', [], {})
162 'forum.likedcomment': {
163 'Meta': {'object_name': 'LikedComment'},
164 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
165 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
166 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),
167 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
168 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
171 'Meta': {'object_name': 'MarkedTag'},
172 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
173 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
174 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
175 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
178 'Meta': {'object_name': 'Node'},
179 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
180 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
181 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
182 'body': ('django.db.models.fields.TextField', [], {}),
183 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
184 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
185 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
186 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
187 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
188 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
189 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
190 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
191 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
192 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
193 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
194 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
195 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
196 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
197 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
198 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
200 'forum.noderevision': {
201 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
202 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
203 'body': ('django.db.models.fields.TextField', [], {}),
204 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
205 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
206 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
207 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
208 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
209 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
210 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
213 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
214 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Answer']", 'unique': 'True', 'null': 'True'}),
215 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
216 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
217 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
218 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
219 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
220 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
221 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
222 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
223 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
224 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),
225 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
226 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),
227 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
228 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
229 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
231 'forum.questionsubscription': {
232 'Meta': {'object_name': 'QuestionSubscription'},
233 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
234 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
235 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 16, 11, 6, 44, 202000)'}),
236 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
237 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
240 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
241 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
242 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
243 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
244 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
245 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
246 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
247 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
249 'forum.subscriptionsettings': {
250 'Meta': {'object_name': 'SubscriptionSettings'},
251 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
252 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
253 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
254 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
255 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
256 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
257 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
258 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
259 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
260 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
261 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
262 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
263 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
264 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
265 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
266 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
267 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
268 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
271 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
272 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
273 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
274 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
275 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
276 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
277 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
278 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
279 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
282 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
283 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
284 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
285 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
286 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
287 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
288 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
289 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
290 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
291 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
292 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
293 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
294 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
295 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
296 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
297 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
298 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
300 'forum.validationhash': {
301 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
302 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 11, 6, 44, 279000)'}),
303 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
304 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
305 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
306 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
307 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
310 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},
311 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
312 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
313 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}),
314 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
315 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
316 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
320 complete_apps = ['forum']