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 'Node'
\r
12 db.create_table('forum_node', (
\r
13 ('body', self.gf('django.db.models.fields.TextField')()),
\r
14 ('vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
\r
15 ('parent', self.gf('django.db.models.fields.related.ForeignKey')(related_name='childs', null=True, to=orm['forum.Node'])),
\r
16 ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='nodes', to=orm['forum.User'])),
\r
17 ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
\r
18 ('title', self.gf('django.db.models.fields.CharField')(max_length=300)),
\r
19 ('comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
\r
20 ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
\r
21 ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_nodes', null=True, to=orm['forum.User'])),
\r
22 ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)),
\r
23 ('node_type', self.gf('django.db.models.fields.CharField')(default='node', max_length=16)),
\r
24 ('score', self.gf('django.db.models.fields.IntegerField')(default=0)),
\r
25 ('vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
\r
26 ('offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
\r
27 ('last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_edited_nodes', null=True, to=orm['forum.User'])),
\r
28 ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
\r
29 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
\r
30 ('last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
\r
32 db.send_create_signal('forum', ['Node'])
\r
34 # Adding M2M table for field tags on 'Node'
\r
35 db.create_table('forum_node_tags', (
\r
36 ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
\r
37 ('node', models.ForeignKey(orm['forum.node'], null=False)),
\r
38 ('tag', models.ForeignKey(orm['forum.tag'], null=False))
\r
40 db.create_unique('forum_node_tags', ['node_id', 'tag_id'])
\r
42 # Adding field 'Vote.node'
\r
43 db.add_column(u'vote', 'node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='votes', null=True, to=orm['forum.Node']), keep_default=False)
\r
45 # Adding field 'Comment.node'
\r
46 db.add_column(u'comment', 'node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='comments', null=True, to=orm['forum.Node']), keep_default=False)
\r
48 # Adding field 'Answer.node_ptr'
\r
49 db.add_column(u'answer', 'node_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, null=True), keep_default=False)
\r
51 # Adding field 'FlaggedItem.node'
\r
52 db.add_column(u'flagged_item', 'node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flaggeditems', null=True, to=orm['forum.Node']), keep_default=False)
\r
54 # Adding field 'Question.node_ptr'
\r
55 db.add_column(u'question', 'node_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, null=True), keep_default=False)
\r
58 def backwards(self, orm):
\r
60 # Deleting model 'Node'
\r
61 db.delete_table('forum_node')
\r
63 # Removing M2M table for field tags on 'Node'
\r
64 db.delete_table('forum_node_tags')
\r
66 # Deleting field 'Vote.node'
\r
67 db.delete_column(u'vote', 'node_id')
\r
69 # Deleting field 'Comment.node'
\r
70 db.delete_column(u'comment', 'node_id')
\r
72 # Deleting field 'Answer.node_ptr'
\r
73 db.delete_column(u'answer', 'node_ptr_id')
\r
75 # Deleting field 'FlaggedItem.node'
\r
76 db.delete_column(u'flagged_item', 'node_id')
\r
78 # Deleting field 'Question.node_ptr'
\r
79 db.delete_column(u'question', 'node_ptr_id')
\r
84 'Meta': {'object_name': 'Group'},
\r
85 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
86 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
87 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
89 'auth.permission': {
\r
90 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
91 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
92 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
93 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
94 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
97 'Meta': {'object_name': 'User'},
\r
98 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
99 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
100 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
101 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
\r
102 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
103 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
104 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
105 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
106 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
107 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
108 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
109 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
\r
110 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
112 'contenttypes.contenttype': {
\r
113 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
114 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
115 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
116 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
117 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
119 'forum.activity': {
\r
120 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
\r
121 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
122 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
123 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
124 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
125 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
126 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
127 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
129 'forum.anonymousanswer': {
\r
130 'Meta': {'object_name': 'AnonymousAnswer'},
\r
131 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
132 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
133 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
134 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
\r
135 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),
\r
136 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
\r
137 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
138 'text': ('django.db.models.fields.TextField', [], {}),
\r
139 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
141 'forum.anonymousquestion': {
\r
142 'Meta': {'object_name': 'AnonymousQuestion'},
\r
143 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
144 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
145 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
146 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
\r
147 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
\r
148 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
149 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
150 'text': ('django.db.models.fields.TextField', [], {}),
\r
151 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
152 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
155 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},
\r
156 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
157 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
158 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
159 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
160 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}),
\r
161 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
162 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
163 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
164 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
165 'html': ('django.db.models.fields.TextField', [], {}),
\r
166 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
167 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
168 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
169 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}),
\r
170 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
171 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}),
\r
172 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
173 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
174 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
175 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
176 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
178 'forum.answerrevision': {
\r
179 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"},
\r
180 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}),
\r
181 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}),
\r
182 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
183 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
\r
184 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
185 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
\r
186 'text': ('django.db.models.fields.TextField', [], {})
\r
188 'forum.authkeyuserassociation': {
\r
189 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
190 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
191 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
192 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
193 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
194 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
197 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
\r
198 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
199 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
\r
200 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
201 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
202 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
203 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
204 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
\r
207 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
\r
208 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
209 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
210 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
211 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
212 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
213 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
214 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
215 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
218 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},
\r
219 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
220 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
221 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
222 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
223 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
224 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
225 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
226 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),
\r
227 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
228 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
229 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
230 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})
\r
232 'forum.favoritequestion': {
\r
233 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
\r
234 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
235 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
236 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
237 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
\r
239 'forum.flaggeditem': {
\r
240 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
\r
241 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
242 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
243 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
244 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
245 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
246 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
247 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
\r
248 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
\r
250 'forum.keyvalue': {
\r
251 'Meta': {'object_name': 'KeyValue'},
\r
252 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
253 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
254 'value': ('forum.models.utils.PickledObjectField', [], {})
\r
256 'forum.likedcomment': {
\r
257 'Meta': {'object_name': 'LikedComment'},
\r
258 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
259 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
260 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),
\r
261 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
262 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
264 'forum.markedtag': {
\r
265 'Meta': {'object_name': 'MarkedTag'},
\r
266 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
267 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
268 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
269 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
272 'Meta': {'object_name': 'Node'},
\r
273 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
274 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
275 'body': ('django.db.models.fields.TextField', [], {}),
\r
276 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
277 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
278 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
279 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
280 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
281 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
282 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
283 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
284 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
285 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'childs'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
286 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
287 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
288 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
289 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
290 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
291 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
293 'forum.question': {
\r
294 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
\r
295 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
296 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
297 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
298 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}),
\r
299 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
\r
300 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
301 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
302 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
303 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
304 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
305 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
306 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
307 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
\r
308 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
309 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}),
\r
310 'html': ('django.db.models.fields.TextField', [], {}),
\r
311 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
312 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
313 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),
\r
314 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
315 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
316 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}),
\r
317 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
318 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
319 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),
\r
320 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
321 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
322 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}),
\r
323 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
324 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
325 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
326 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
327 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
328 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
330 'forum.questionrevision': {
\r
331 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"},
\r
332 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}),
\r
333 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
334 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}),
\r
335 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
\r
336 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
337 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),
\r
338 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
339 'text': ('django.db.models.fields.TextField', [], {}),
\r
340 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
342 'forum.questionsubscription': {
\r
343 'Meta': {'object_name': 'QuestionSubscription'},
\r
344 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
345 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
346 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 1, 28, 41, 733000)'}),
\r
347 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
348 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
351 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
\r
352 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
353 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
354 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
355 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
356 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
357 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
358 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
\r
360 'forum.subscriptionsettings': {
\r
361 'Meta': {'object_name': 'SubscriptionSettings'},
\r
362 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
363 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
364 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
365 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
366 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
367 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
368 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
369 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
370 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
371 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
372 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
373 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
374 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
375 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
376 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
377 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
378 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
379 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
382 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
\r
383 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
384 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
385 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
386 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
387 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
388 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
389 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
390 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
393 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
394 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
395 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
396 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
397 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
398 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
\r
399 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
400 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
401 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
402 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
403 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
404 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
\r
405 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
406 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
407 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
408 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
409 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
411 'forum.validationhash': {
\r
412 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
413 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 1, 28, 41, 976000)'}),
\r
414 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
415 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
416 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
417 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
418 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
421 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},
\r
422 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
423 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
424 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
425 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
426 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
427 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
\r
428 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
429 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
\r
433 complete_apps = ['forum']
\r