3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
12 db.create_table('forum_user', (
13 ('website', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)),
14 ('user_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, primary_key=True)),
15 ('hide_ignored_questions', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
16 ('is_approved', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
17 ('email_isvalid', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
18 ('real_name', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
19 ('about', self.gf('django.db.models.fields.TextField')(blank=True)),
20 ('silver', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
21 ('date_of_birth', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
22 ('reputation', self.gf('django.db.models.fields.PositiveIntegerField')(default=1)),
23 ('gravatar', self.gf('django.db.models.fields.CharField')(max_length=32)),
24 ('location', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
25 ('tag_filter_setting', self.gf('django.db.models.fields.CharField')(default='ignored', max_length=16)),
26 ('gold', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
27 ('last_seen', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
28 ('email_key', self.gf('django.db.models.fields.CharField')(max_length=32, null=True)),
29 ('bronze', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
30 ('questions_per_page', self.gf('django.db.models.fields.SmallIntegerField')(default=10)),
32 db.send_create_signal('forum', ['User'])
34 # Adding model 'Activity'
35 db.create_table(u'activity', (
36 ('is_auditted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
37 ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
38 ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),
39 ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
40 ('active_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
41 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
42 ('activity_type', self.gf('django.db.models.fields.SmallIntegerField')()),
44 db.send_create_signal('forum', ['Activity'])
46 # Adding model 'SubscriptionSettings'
47 db.create_table('forum_subscriptionsettings', (
48 ('questions_asked', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
49 ('questions_viewed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
50 ('notify_comments', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
51 ('new_question', self.gf('django.db.models.fields.CharField')(default='d', max_length=1)),
52 ('all_questions', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
53 ('new_question_watched_tags', self.gf('django.db.models.fields.CharField')(default='i', max_length=1)),
54 ('questions_answered', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
55 ('notify_comments_own_post', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
56 ('questions_commented', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
57 ('subscribed_questions', self.gf('django.db.models.fields.CharField')(default='i', max_length=1)),
58 ('notify_reply_to_comments', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
59 ('member_joins', self.gf('django.db.models.fields.CharField')(default='n', max_length=1)),
60 ('user', self.gf('django.db.models.fields.related.OneToOneField')(related_name='subscription_settings', unique=True, to=orm['forum.User'])),
61 ('notify_answers', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
62 ('enable_notifications', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
63 ('all_questions_watched_tags', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
64 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
65 ('notify_accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
67 db.send_create_signal('forum', ['SubscriptionSettings'])
69 # Adding model 'ValidationHash'
70 db.create_table('forum_validationhash', (
71 ('hash_code', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
72 ('seed', self.gf('django.db.models.fields.CharField')(max_length=12)),
73 ('expiration', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2010, 4, 7, 10, 36, 23, 812000))),
74 ('type', self.gf('django.db.models.fields.CharField')(max_length=12)),
75 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
76 ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),
78 db.send_create_signal('forum', ['ValidationHash'])
80 # Adding unique constraint on 'ValidationHash', fields ['user', 'type']
81 db.create_unique('forum_validationhash', ['user_id', 'type'])
83 # Adding model 'AuthKeyUserAssociation'
84 db.create_table('forum_authkeyuserassociation', (
85 ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
86 ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='auth_keys', to=orm['forum.User'])),
87 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
88 ('key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
89 ('provider', self.gf('django.db.models.fields.CharField')(max_length=64)),
91 db.send_create_signal('forum', ['AuthKeyUserAssociation'])
94 db.create_table(u'vote', (
95 ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
96 ('voted_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
97 ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='votes', to=orm['forum.User'])),
98 ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
99 ('vote', self.gf('django.db.models.fields.SmallIntegerField')()),
100 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
102 db.send_create_signal('forum', ['Vote'])
104 # Adding unique constraint on 'Vote', fields ['content_type', 'object_id', 'user']
105 db.create_unique(u'vote', ['content_type_id', 'object_id', 'user_id'])
107 # Adding model 'FlaggedItem'
108 db.create_table(u'flagged_item', (
109 ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
110 ('flagged_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
111 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
112 ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
113 ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flaggeditems', to=orm['forum.User'])),
115 db.send_create_signal('forum', ['FlaggedItem'])
117 # Adding unique constraint on 'FlaggedItem', fields ['content_type', 'object_id', 'user']
118 db.create_unique(u'flagged_item', ['content_type_id', 'object_id', 'user_id'])
120 # Adding model 'Comment'
121 db.create_table(u'comment', (
122 ('comment', self.gf('django.db.models.fields.CharField')(max_length=300)),
123 ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
124 ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
125 ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
126 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
127 ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='comments', to=orm['forum.User'])),
129 db.send_create_signal('forum', ['Comment'])
132 db.create_table(u'tag', (
133 ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
134 ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
135 ('created_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='created_tags', to=orm['forum.User'])),
136 ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_tags', null=True, to=orm['forum.User'])),
137 ('used_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
138 ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
139 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
141 db.send_create_signal('forum', ['Tag'])
143 # Adding model 'MarkedTag'
144 db.create_table('forum_markedtag', (
145 ('reason', self.gf('django.db.models.fields.CharField')(max_length=16)),
146 ('tag', self.gf('django.db.models.fields.related.ForeignKey')(related_name='user_selections', to=orm['forum.Tag'])),
147 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
148 ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tag_selections', to=orm['forum.User'])),
150 db.send_create_signal('forum', ['MarkedTag'])
152 # Adding model 'Question'
153 db.create_table(u'question', (
154 ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
155 ('vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
156 ('answer_accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
157 ('offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
158 ('closed_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
159 ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
160 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
161 ('last_activity_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='last_active_in_questions', to=orm['forum.User'])),
162 ('view_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
163 ('locked_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
164 ('score', self.gf('django.db.models.fields.IntegerField')(default=0)),
165 ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='questions', to=orm['forum.User'])),
166 ('comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
167 ('html', self.gf('django.db.models.fields.TextField')()),
168 ('vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
169 ('closed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
170 ('last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_edited_questions', null=True, to=orm['forum.User'])),
171 ('favourite_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
172 ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
173 ('summary', self.gf('django.db.models.fields.CharField')(max_length=180)),
174 ('answer_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
175 ('last_activity_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
176 ('closed_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='closed_questions', null=True, to=orm['forum.User'])),
177 ('close_reason', self.gf('django.db.models.fields.SmallIntegerField')(null=True, blank=True)),
178 ('locked', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
179 ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)),
180 ('locked_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='locked_questions', null=True, to=orm['forum.User'])),
181 ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
182 ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_questions', null=True, to=orm['forum.User'])),
183 ('wikified_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
184 ('title', self.gf('django.db.models.fields.CharField')(max_length=300)),
185 ('last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
187 db.send_create_signal('forum', ['Question'])
189 # Adding M2M table for field followed_by on 'Question'
190 db.create_table(u'question_followed_by', (
191 ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
192 ('question', models.ForeignKey(orm['forum.question'], null=False)),
193 ('user', models.ForeignKey(orm['forum.user'], null=False))
195 db.create_unique(u'question_followed_by', ['question_id', 'user_id'])
197 # Adding M2M table for field tags on 'Question'
198 db.create_table(u'question_tags', (
199 ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
200 ('question', models.ForeignKey(orm['forum.question'], null=False)),
201 ('tag', models.ForeignKey(orm['forum.tag'], null=False))
203 db.create_unique(u'question_tags', ['question_id', 'tag_id'])
205 # Adding model 'QuestionSubscription'
206 db.create_table('forum_questionsubscription', (
207 ('last_view', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2010, 4, 6, 10, 36, 23, 725000))),
208 ('auto_subscription', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
209 ('question', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Question'])),
210 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
211 ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),
213 db.send_create_signal('forum', ['QuestionSubscription'])
215 # Adding model 'FavoriteQuestion'
216 db.create_table(u'favorite_question', (
217 ('question', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Question'])),
218 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
219 ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
220 ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='user_favorite_questions', to=orm['forum.User'])),
222 db.send_create_signal('forum', ['FavoriteQuestion'])
224 # Adding model 'QuestionRevision'
225 db.create_table(u'question_revision', (
226 ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='questionrevisions', to=orm['forum.User'])),
227 ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)),
228 ('text', self.gf('django.db.models.fields.TextField')()),
229 ('title', self.gf('django.db.models.fields.CharField')(max_length=300)),
230 ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['forum.Question'])),
231 ('revised_at', self.gf('django.db.models.fields.DateTimeField')()),
232 ('summary', self.gf('django.db.models.fields.CharField')(max_length=300, blank=True)),
233 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
234 ('revision', self.gf('django.db.models.fields.PositiveIntegerField')()),
236 db.send_create_signal('forum', ['QuestionRevision'])
238 # Adding model 'AnonymousQuestion'
239 db.create_table('forum_anonymousquestion', (
240 ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
241 ('ip_addr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
242 ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True)),
243 ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)),
244 ('text', self.gf('django.db.models.fields.TextField')()),
245 ('title', self.gf('django.db.models.fields.CharField')(max_length=300)),
246 ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
247 ('summary', self.gf('django.db.models.fields.CharField')(max_length=180)),
248 ('session_key', self.gf('django.db.models.fields.CharField')(max_length=40)),
249 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
251 db.send_create_signal('forum', ['AnonymousQuestion'])
253 # Adding model 'Answer'
254 db.create_table(u'answer', (
255 ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
256 ('vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
257 ('offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
258 ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
259 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
260 ('locked_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
261 ('score', self.gf('django.db.models.fields.IntegerField')(default=0)),
262 ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='answers', to=orm['forum.User'])),
263 ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='answers', to=orm['forum.Question'])),
264 ('comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
265 ('html', self.gf('django.db.models.fields.TextField')()),
266 ('vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
267 ('last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_edited_answers', null=True, to=orm['forum.User'])),
268 ('accepted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
269 ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
270 ('accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
271 ('locked', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
272 ('locked_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='locked_answers', null=True, to=orm['forum.User'])),
273 ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
274 ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_answers', null=True, to=orm['forum.User'])),
275 ('wikified_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
276 ('last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
278 db.send_create_signal('forum', ['Answer'])
280 # Adding model 'AnswerRevision'
281 db.create_table(u'answer_revision', (
282 ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='answerrevisions', to=orm['forum.User'])),
283 ('text', self.gf('django.db.models.fields.TextField')()),
284 ('revised_at', self.gf('django.db.models.fields.DateTimeField')()),
285 ('summary', self.gf('django.db.models.fields.CharField')(max_length=300, blank=True)),
286 ('answer', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['forum.Answer'])),
287 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
288 ('revision', self.gf('django.db.models.fields.PositiveIntegerField')()),
290 db.send_create_signal('forum', ['AnswerRevision'])
292 # Adding model 'AnonymousAnswer'
293 db.create_table('forum_anonymousanswer', (
294 ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
295 ('ip_addr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
296 ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True)),
297 ('text', self.gf('django.db.models.fields.TextField')()),
298 ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='anonymous_answers', to=orm['forum.Question'])),
299 ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
300 ('summary', self.gf('django.db.models.fields.CharField')(max_length=180)),
301 ('session_key', self.gf('django.db.models.fields.CharField')(max_length=40)),
302 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
304 db.send_create_signal('forum', ['AnonymousAnswer'])
306 # Adding model 'Badge'
307 db.create_table(u'badge', (
308 ('multiple', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
309 ('description', self.gf('django.db.models.fields.CharField')(max_length=300)),
310 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
311 ('awarded_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
312 ('type', self.gf('django.db.models.fields.SmallIntegerField')()),
313 ('slug', self.gf('django.db.models.fields.SlugField')(db_index=True, max_length=50, blank=True)),
314 ('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
316 db.send_create_signal('forum', ['Badge'])
318 # Adding unique constraint on 'Badge', fields ['name', 'type']
319 db.create_unique(u'badge', ['name', 'type'])
321 # Adding model 'Award'
322 db.create_table(u'award', (
323 ('awarded_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
324 ('notified', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
325 ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
326 ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='awards', to=orm['forum.User'])),
327 ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
328 ('badge', self.gf('django.db.models.fields.related.ForeignKey')(related_name='award_badge', to=orm['forum.Badge'])),
329 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
331 db.send_create_signal('forum', ['Award'])
333 # Adding unique constraint on 'Award', fields ['content_type', 'object_id', 'user', 'badge']
334 db.create_unique(u'award', ['content_type_id', 'object_id', 'user_id', 'badge_id'])
336 # Adding model 'Repute'
337 db.create_table(u'repute', (
338 ('positive', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
339 ('question', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Question'])),
340 ('negative', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
341 ('reputation_type', self.gf('django.db.models.fields.SmallIntegerField')()),
342 ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),
343 ('reputed_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
344 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
345 ('reputation', self.gf('django.db.models.fields.IntegerField')(default=1)),
347 db.send_create_signal('forum', ['Repute'])
349 # Adding model 'KeyValue'
350 db.create_table('forum_keyvalue', (
351 ('value', self.gf('forum.models.utils.PickledObjectField')()),
352 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
353 ('key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
355 db.send_create_signal('forum', ['KeyValue'])
358 def backwards(self, orm):
360 # Deleting model 'User'
361 db.delete_table('forum_user')
363 # Deleting model 'Activity'
364 db.delete_table(u'activity')
366 # Deleting model 'SubscriptionSettings'
367 db.delete_table('forum_subscriptionsettings')
369 # Deleting model 'ValidationHash'
370 db.delete_table('forum_validationhash')
372 # Removing unique constraint on 'ValidationHash', fields ['user', 'type']
373 db.delete_unique('forum_validationhash', ['user_id', 'type'])
375 # Deleting model 'AuthKeyUserAssociation'
376 db.delete_table('forum_authkeyuserassociation')
378 # Deleting model 'Vote'
379 db.delete_table(u'vote')
381 # Removing unique constraint on 'Vote', fields ['content_type', 'object_id', 'user']
382 db.delete_unique(u'vote', ['content_type_id', 'object_id', 'user_id'])
384 # Deleting model 'FlaggedItem'
385 db.delete_table(u'flagged_item')
387 # Removing unique constraint on 'FlaggedItem', fields ['content_type', 'object_id', 'user']
388 db.delete_unique(u'flagged_item', ['content_type_id', 'object_id', 'user_id'])
390 # Deleting model 'Comment'
391 db.delete_table(u'comment')
393 # Deleting model 'Tag'
394 db.delete_table(u'tag')
396 # Deleting model 'MarkedTag'
397 db.delete_table('forum_markedtag')
399 # Deleting model 'Question'
400 db.delete_table(u'question')
402 # Removing M2M table for field followed_by on 'Question'
403 db.delete_table('question_followed_by')
405 # Removing M2M table for field tags on 'Question'
406 db.delete_table('question_tags')
408 # Deleting model 'QuestionSubscription'
409 db.delete_table('forum_questionsubscription')
411 # Deleting model 'FavoriteQuestion'
412 db.delete_table(u'favorite_question')
414 # Deleting model 'QuestionRevision'
415 db.delete_table(u'question_revision')
417 # Deleting model 'AnonymousQuestion'
418 db.delete_table('forum_anonymousquestion')
420 # Deleting model 'Answer'
421 db.delete_table(u'answer')
423 # Deleting model 'AnswerRevision'
424 db.delete_table(u'answer_revision')
426 # Deleting model 'AnonymousAnswer'
427 db.delete_table('forum_anonymousanswer')
429 # Deleting model 'Badge'
430 db.delete_table(u'badge')
432 # Removing unique constraint on 'Badge', fields ['name', 'type']
433 db.delete_unique(u'badge', ['name', 'type'])
435 # Deleting model 'Award'
436 db.delete_table(u'award')
438 # Removing unique constraint on 'Award', fields ['content_type', 'object_id', 'user', 'badge']
439 db.delete_unique(u'award', ['content_type_id', 'object_id', 'user_id', 'badge_id'])
441 # Deleting model 'Repute'
442 db.delete_table(u'repute')
444 # Deleting model 'KeyValue'
445 db.delete_table('forum_keyvalue')
450 'Meta': {'object_name': 'Group'},
451 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
452 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
453 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
456 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
457 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
458 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
459 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
460 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
463 'Meta': {'object_name': 'User'},
464 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
465 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
466 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
467 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
468 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
469 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
470 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
471 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
472 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
473 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
474 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
475 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
476 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
478 'contenttypes.contenttype': {
479 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
480 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
481 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
482 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
483 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
486 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
487 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
488 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
489 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
490 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
491 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
492 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
493 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
495 'forum.anonymousanswer': {
496 'Meta': {'object_name': 'AnonymousAnswer'},
497 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
498 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
499 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
500 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
501 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),
502 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
503 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
504 'text': ('django.db.models.fields.TextField', [], {}),
505 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
507 'forum.anonymousquestion': {
508 'Meta': {'object_name': 'AnonymousQuestion'},
509 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
510 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
511 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
512 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
513 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
514 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
515 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
516 'text': ('django.db.models.fields.TextField', [], {}),
517 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
518 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
521 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},
522 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
523 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
524 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
525 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}),
526 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
527 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
528 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
529 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}),
530 'html': ('django.db.models.fields.TextField', [], {}),
531 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
532 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
533 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}),
534 'locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
535 'locked_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
536 'locked_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'locked_answers'", 'null': 'True', 'to': "orm['forum.User']"}),
537 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
538 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}),
539 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
540 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
541 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
542 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
543 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
545 'forum.answerrevision': {
546 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"},
547 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}),
548 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}),
549 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
550 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
551 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
552 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
553 'text': ('django.db.models.fields.TextField', [], {})
555 'forum.authkeyuserassociation': {
556 'Meta': {'object_name': 'AuthKeyUserAssociation'},
557 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
558 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
559 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
560 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
561 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
564 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
565 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
566 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
567 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
568 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
569 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
570 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
571 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
574 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
575 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
576 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
577 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
578 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
579 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
580 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
581 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
582 'type': ('django.db.models.fields.SmallIntegerField', [], {})
585 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},
586 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
587 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
588 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
589 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
590 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
591 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})
593 'forum.favoritequestion': {
594 'Meta': {'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
595 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
596 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
597 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
598 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
600 'forum.flaggeditem': {
601 'Meta': {'unique_together': "(('content_type', 'object_id', 'user'),)", 'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
602 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
603 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
604 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
605 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
606 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
609 'Meta': {'object_name': 'KeyValue'},
610 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
611 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
612 'value': ('forum.models.utils.PickledObjectField', [], {})
615 'Meta': {'object_name': 'MarkedTag'},
616 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
617 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
618 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
619 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
622 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
623 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
624 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
625 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
626 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}),
627 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
628 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
629 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
630 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
631 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
632 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
633 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
634 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
635 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
636 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
637 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}),
638 'html': ('django.db.models.fields.TextField', [], {}),
639 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
640 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
641 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),
642 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
643 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
644 'locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
645 'locked_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
646 'locked_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'locked_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
647 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
648 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
649 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),
650 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
651 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
652 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}),
653 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
654 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
655 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
656 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
657 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
658 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
660 'forum.questionrevision': {
661 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"},
662 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}),
663 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
664 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}),
665 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
666 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
667 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
668 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
669 'text': ('django.db.models.fields.TextField', [], {}),
670 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
672 'forum.questionsubscription': {
673 'Meta': {'object_name': 'QuestionSubscription'},
674 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
675 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
676 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 10, 36, 23, 725000)'}),
677 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
678 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
681 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
682 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
683 'negative': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
684 'positive': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
685 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
686 'reputation': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
687 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
688 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
689 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
691 'forum.subscriptionsettings': {
692 'Meta': {'object_name': 'SubscriptionSettings'},
693 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
694 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
695 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
696 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
697 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
698 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
699 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
700 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
701 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
702 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
703 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
704 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
705 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
706 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
707 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
708 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
709 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
710 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
713 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
714 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
715 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
716 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
717 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
718 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
719 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
720 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
721 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
724 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
725 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
726 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
727 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
728 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
729 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
730 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
731 'gravatar': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
732 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
733 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
734 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
735 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
736 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
737 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
738 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
739 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
740 'tag_filter_setting': ('django.db.models.fields.CharField', [], {'default': "'ignored'", 'max_length': '16'}),
741 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
742 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
744 'forum.validationhash': {
745 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
746 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 10, 36, 23, 863000)'}),
747 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
748 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
749 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
750 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
751 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
754 'Meta': {'unique_together': "(('content_type', 'object_id', 'user'),)", 'object_name': 'Vote', 'db_table': "u'vote'"},
755 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
756 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
757 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
758 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
759 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
760 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
764 complete_apps = ['forum']