3 from south.db import db
4 from south.v2 import DataMigration
5 from django.db import models
7 class Migration(DataMigration):
9 def forwards(self, orm):
10 for n in orm.Node.objects.all():
12 n.active_revision = n.revisions.order_by('-id')[0]
15 r = orm.NodeRevision(author=n.author, body=n.body, title=n.title, revised_at=datetime.datetime.now(),
16 tagnames=n.tagnames, summary='Initial Revision', revision=1, node=n)
22 def backwards(self, orm):
23 "Write your backwards methods here."
27 'Meta': {'object_name': 'Group'},
28 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
30 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
33 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
34 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
35 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
36 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
40 'Meta': {'object_name': 'User'},
41 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
42 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
43 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
44 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
45 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
47 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
48 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
49 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
50 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
51 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
52 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
53 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
55 'contenttypes.contenttype': {
56 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
57 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
58 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
60 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
63 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
64 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
65 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
66 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
67 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
69 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
70 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
72 'forum.anonymousanswer': {
73 'Meta': {'object_name': 'AnonymousAnswer'},
74 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
75 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
76 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
78 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),
79 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
80 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
81 'text': ('django.db.models.fields.TextField', [], {}),
82 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
84 'forum.anonymousquestion': {
85 'Meta': {'object_name': 'AnonymousQuestion'},
86 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
87 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
88 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
90 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
91 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
92 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
93 'text': ('django.db.models.fields.TextField', [], {}),
94 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
95 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
98 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},
99 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
100 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
101 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
102 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
103 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
104 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
106 'forum.authkeyuserassociation': {
107 'Meta': {'object_name': 'AuthKeyUserAssociation'},
108 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
109 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
110 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
111 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
112 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
115 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
116 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
117 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
118 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
119 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
120 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
121 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
122 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
125 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
126 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
127 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
128 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
129 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
130 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
131 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
132 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
133 'type': ('django.db.models.fields.SmallIntegerField', [], {})
136 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},
137 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
138 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
139 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
140 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
141 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),
142 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
143 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),
144 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}),
145 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
146 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})
148 'forum.favoritequestion': {
149 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
150 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
151 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
152 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
153 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
155 'forum.flaggeditem': {
156 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
157 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
158 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
159 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
160 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}),
161 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
162 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
165 'Meta': {'object_name': 'KeyValue'},
166 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
167 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
168 'value': ('forum.models.utils.PickledObjectField', [], {})
170 'forum.likedcomment': {
171 'Meta': {'object_name': 'LikedComment'},
172 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
173 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
174 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),
175 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
176 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
179 'Meta': {'object_name': 'MarkedTag'},
180 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
181 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
182 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
183 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
186 'Meta': {'object_name': 'Node'},
187 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
188 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
189 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
190 'body': ('django.db.models.fields.TextField', [], {}),
191 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
192 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
193 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
194 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
195 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
196 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
197 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
198 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
199 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
200 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
201 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
202 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
203 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
204 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
205 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
206 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
208 'forum.noderevision': {
209 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
210 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
211 'body': ('django.db.models.fields.TextField', [], {}),
212 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
213 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
214 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
215 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
216 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
217 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
218 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
221 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
222 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
223 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
224 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
225 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
226 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
227 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
228 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
229 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
230 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
231 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),
232 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}),
233 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),
234 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
235 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
236 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
238 'forum.questionsubscription': {
239 'Meta': {'object_name': 'QuestionSubscription'},
240 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
241 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
242 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 17, 56, 41, 918000)'}),
243 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
244 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
247 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
248 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
249 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
250 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
251 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
252 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
253 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
254 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
256 'forum.subscriptionsettings': {
257 'Meta': {'object_name': 'SubscriptionSettings'},
258 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
259 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
260 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
261 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
262 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
263 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
264 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
265 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
266 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
267 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
268 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
269 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
270 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
271 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
272 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
273 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
274 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
275 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
278 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
279 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
280 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
281 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
282 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
283 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
284 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
285 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
286 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
289 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
290 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
291 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
292 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
293 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
294 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
295 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
296 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
297 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
298 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
299 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
300 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
301 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
302 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
303 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
304 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
305 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
307 'forum.validationhash': {
308 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
309 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 17, 56, 41, 986000)'}),
310 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
311 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
312 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
313 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
314 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
317 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},
318 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
319 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
320 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}),
321 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
322 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
323 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
327 complete_apps = ['forum']