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