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 a in orm.Answer.objects.filter(accepted=True):
11 a.accepted_by = a.question.author
14 def backwards(self, orm):
15 "Write your backwards methods here."
19 'Meta': {'object_name': 'Group'},
20 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
21 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
22 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
25 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
26 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
27 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
28 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
32 'Meta': {'object_name': 'User'},
33 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
34 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
35 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
36 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
37 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
39 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
40 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
41 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
42 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
43 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
44 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
45 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
47 'contenttypes.contenttype': {
48 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
49 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
50 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
52 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
55 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
56 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
57 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
58 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
59 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
61 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
62 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
64 'forum.anonymousanswer': {
65 'Meta': {'object_name': 'AnonymousAnswer'},
66 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
67 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
68 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
70 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),
71 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
72 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
73 'text': ('django.db.models.fields.TextField', [], {}),
74 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
76 'forum.anonymousquestion': {
77 'Meta': {'object_name': 'AnonymousQuestion'},
78 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
79 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
80 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
81 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
82 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
83 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
84 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
85 'text': ('django.db.models.fields.TextField', [], {}),
86 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
87 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
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 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
95 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}),
96 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
97 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
98 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
99 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}),
100 'html': ('django.db.models.fields.TextField', [], {}),
101 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
102 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
103 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}),
104 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
105 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}),
106 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
107 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
108 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
109 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
110 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
112 'forum.answerrevision': {
113 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"},
114 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}),
115 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}),
116 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
117 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
118 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
119 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
120 'text': ('django.db.models.fields.TextField', [], {})
122 'forum.authkeyuserassociation': {
123 'Meta': {'object_name': 'AuthKeyUserAssociation'},
124 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
125 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
126 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
127 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
128 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
131 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
132 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
133 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
134 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
135 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
136 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
137 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
138 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
141 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
142 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
143 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
144 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
145 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
146 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
147 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
148 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
149 'type': ('django.db.models.fields.SmallIntegerField', [], {})
152 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},
153 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
154 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
155 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
156 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
157 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
158 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),
159 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
160 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),
161 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
162 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
163 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})
165 'forum.favoritequestion': {
166 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
167 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
168 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
169 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
170 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
172 'forum.flaggeditem': {
173 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
174 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
175 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
176 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
177 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
178 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
179 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
180 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
183 'Meta': {'object_name': 'KeyValue'},
184 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
185 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
186 'value': ('forum.models.utils.PickledObjectField', [], {})
188 'forum.likedcomment': {
189 'Meta': {'object_name': 'LikedComment'},
190 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
191 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
192 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),
193 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
194 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
197 'Meta': {'object_name': 'MarkedTag'},
198 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
199 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
200 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
201 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
204 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
205 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
206 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
207 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
208 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}),
209 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
210 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
211 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
212 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
213 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
214 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
215 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
216 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
217 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
218 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
219 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}),
220 'html': ('django.db.models.fields.TextField', [], {}),
221 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
222 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
223 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),
224 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
225 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
226 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
227 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
228 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),
229 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
230 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
231 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}),
232 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
233 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
234 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
235 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
236 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
237 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
239 'forum.questionrevision': {
240 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"},
241 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}),
242 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
243 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}),
244 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
245 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
246 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
247 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
248 'text': ('django.db.models.fields.TextField', [], {}),
249 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
251 'forum.questionsubscription': {
252 'Meta': {'object_name': 'QuestionSubscription'},
253 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
254 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
255 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 11, 46, 14, 452000)'}),
256 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
257 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
260 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
261 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
262 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
263 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
264 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
265 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
266 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
267 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
269 'forum.subscriptionsettings': {
270 'Meta': {'object_name': 'SubscriptionSettings'},
271 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
272 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
273 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
274 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
275 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
276 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
277 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
278 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
279 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
280 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
281 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
282 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
283 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
284 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
285 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
286 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
287 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
288 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
291 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
292 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
293 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
294 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
295 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
296 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
297 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
298 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
299 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
302 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
303 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
304 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
305 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
306 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
307 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
308 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
309 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
310 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
311 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
312 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
313 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
314 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
315 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
316 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
317 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
318 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
320 'forum.validationhash': {
321 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
322 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 11, 46, 14, 538000)'}),
323 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
324 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
325 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
326 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
327 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
330 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},
331 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
332 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
333 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
334 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
335 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
336 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
337 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
341 complete_apps = ['forum']