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