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