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 # Deleting model 'Repute'
\r
12 db.delete_table(u'repute')
\r
14 # Deleting model 'Vote'
\r
15 db.delete_table(u'vote')
\r
17 # Deleting model 'Answer'
\r
18 db.delete_table(u'answer')
\r
20 # Deleting model 'FlaggedItem'
\r
21 db.delete_table(u'flagged_item')
\r
23 # Deleting model 'AnonymousNode'
\r
24 db.delete_table('forum_anonymousnode')
\r
26 # Deleting model 'FavoriteQuestion'
\r
27 db.delete_table(u'favorite_question')
\r
29 # Deleting model 'Question'
\r
30 db.delete_table(u'question')
\r
32 # Deleting field 'Node.deleted_at'
\r
33 db.delete_column('forum_node', 'deleted_at')
\r
35 # Deleting field 'Node.last_edited_by'
\r
36 db.delete_column('forum_node', 'last_edited_by_id')
\r
38 # Deleting field 'Node.deleted'
\r
39 db.delete_column('forum_node', 'deleted')
\r
41 # Deleting field 'Node.deleted_by'
\r
42 db.delete_column('forum_node', 'deleted_by_id')
\r
44 # Deleting field 'Node.last_edited_at'
\r
45 db.delete_column('forum_node', 'last_edited_at')
\r
48 def backwards(self, orm):
\r
50 # Adding model 'Repute'
\r
51 db.create_table(u'repute', (
\r
52 ('node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reputes', null=True, to=orm['forum.Node'])),
\r
53 ('reputed_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
\r
54 ('question', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Question'])),
\r
55 ('value', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
\r
56 ('canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
\r
57 ('reputation_type', self.gf('django.db.models.fields.SmallIntegerField')()),
\r
58 ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reputes', to=orm['forum.User'])),
\r
59 ('user_previous_rep', self.gf('django.db.models.fields.IntegerField')(default=0)),
\r
60 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
\r
62 db.send_create_signal('forum', ['Repute'])
\r
64 # Adding model 'Vote'
\r
65 db.create_table(u'vote', (
\r
66 ('node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='votes', null=True, to=orm['forum.Node'])),
\r
67 ('vote', self.gf('django.db.models.fields.SmallIntegerField')()),
\r
68 ('canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
\r
69 ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='votes', to=orm['forum.User'])),
\r
70 ('voted_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
\r
71 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
\r
73 db.send_create_signal('forum', ['Vote'])
\r
75 # Adding model 'Answer'
\r
76 db.create_table(u'answer', (
\r
77 ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
\r
78 ('accepted_by', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True)),
\r
79 ('accepted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
\r
80 ('wikified_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
\r
81 ('node_ptr', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'], null=True, primary_key=True)),
\r
82 ('accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
\r
84 db.send_create_signal('forum', ['Answer'])
\r
86 # Adding model 'FlaggedItem'
\r
87 db.create_table(u'flagged_item', (
\r
88 ('node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flaggeditems', null=True, to=orm['forum.Node'])),
\r
89 ('flagged_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
\r
90 ('canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
\r
91 ('reason', self.gf('django.db.models.fields.CharField')(max_length=300, null=True)),
\r
92 ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flaggeditems', to=orm['forum.User'])),
\r
93 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
\r
95 db.send_create_signal('forum', ['FlaggedItem'])
\r
97 # Adding model 'AnonymousNode'
\r
98 db.create_table('forum_anonymousnode', (
\r
99 ('convertible_to', self.gf('django.db.models.fields.CharField')(default='node', max_length=16)),
\r
100 ('validation_hash', self.gf('django.db.models.fields.related.ForeignKey')(related_name='anonymous_content', to=orm['forum.Node'])),
\r
101 ('node_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, primary_key=True)),
\r
103 db.send_create_signal('forum', ['AnonymousNode'])
\r
105 # Adding model 'FavoriteQuestion'
\r
106 db.create_table(u'favorite_question', (
\r
107 ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='favourites', to=orm['forum.Question'])),
\r
108 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
\r
109 ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
\r
110 ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='user_favorite_questions', to=orm['forum.User'])),
\r
112 db.send_create_signal('forum', ['FavoriteQuestion'])
\r
114 # Adding model 'Question'
\r
115 db.create_table(u'question', (
\r
116 ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
\r
117 ('last_activity_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='last_active_in_questions', null=True, to=orm['forum.User'])),
\r
118 ('close_reason', self.gf('django.db.models.fields.SmallIntegerField')(null=True, blank=True)),
\r
119 ('last_activity_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
\r
120 ('view_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
\r
121 ('node_ptr', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'], null=True, primary_key=True)),
\r
122 ('accepted_answer', self.gf('django.db.models.fields.related.OneToOneField')(related_name='question_accepting', unique=True, null=True, to=orm['forum.Answer'])),
\r
123 ('closed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
\r
124 ('wikified_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
\r
125 ('closed_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
\r
126 ('closed_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='closed_questions', null=True, to=orm['forum.User'], blank=True)),
\r
128 db.send_create_signal('forum', ['Question'])
\r
130 # Adding field 'Node.deleted_at'
\r
131 db.add_column('forum_node', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False)
\r
133 # Adding field 'Node.last_edited_by'
\r
134 db.add_column('forum_node', 'last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='last_edited_nodes', null=True, to=orm['forum.User'], blank=True), keep_default=False)
\r
136 # Adding field 'Node.deleted'
\r
137 db.add_column('forum_node', 'deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
\r
139 # Adding field 'Node.deleted_by'
\r
140 db.add_column('forum_node', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_nodes', null=True, to=orm['forum.User'], blank=True), keep_default=False)
\r
142 # Adding field 'Node.last_edited_at'
\r
143 db.add_column('forum_node', 'last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False)
\r
148 'Meta': {'object_name': 'Group'},
\r
149 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
150 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
151 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
153 'auth.permission': {
\r
154 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
155 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
156 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
157 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
158 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
161 'Meta': {'object_name': 'User'},
\r
162 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
163 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
164 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
165 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
\r
166 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
167 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
168 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
169 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
170 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
171 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
172 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
173 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
\r
174 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
176 'contenttypes.contenttype': {
\r
177 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
178 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
179 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
180 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
181 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
184 'Meta': {'object_name': 'Action'},
\r
185 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
186 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
187 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
188 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
\r
189 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
190 'extra': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
\r
191 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
192 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
193 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
194 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})
\r
196 'forum.actionrepute': {
\r
197 'Meta': {'object_name': 'ActionRepute'},
\r
198 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}),
\r
199 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
200 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
201 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}),
\r
202 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
204 'forum.activity': {
\r
205 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
\r
206 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
207 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
208 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
209 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
210 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
211 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
212 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
214 'forum.authkeyuserassociation': {
\r
215 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
216 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
217 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
218 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
219 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
220 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
223 'Meta': {'object_name': 'Award', 'db_table': "u'award'"},
\r
224 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
225 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
\r
226 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
227 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
228 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
229 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
230 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
\r
233 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
\r
234 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
235 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
236 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
237 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
238 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
239 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
240 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
241 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
243 'forum.keyvalue': {
\r
244 'Meta': {'object_name': 'KeyValue'},
\r
245 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
246 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
247 'value': ('forum.models.utils.PickledObjectField', [], {})
\r
249 'forum.markedtag': {
\r
250 'Meta': {'object_name': 'MarkedTag'},
\r
251 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
252 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
253 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
254 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
257 'Meta': {'object_name': 'Node'},
\r
258 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
259 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
\r
260 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
261 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
262 'body': ('django.db.models.fields.TextField', [], {}),
\r
263 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
264 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
265 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
266 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
267 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
268 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
269 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
270 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
271 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
272 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
273 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
274 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
275 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
277 'forum.noderevision': {
\r
278 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
279 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
280 'body': ('django.db.models.fields.TextField', [], {}),
\r
281 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
282 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
283 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
284 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
285 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
286 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
287 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
289 'forum.openidassociation': {
\r
290 'Meta': {'object_name': 'OpenIdAssociation'},
\r
291 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),
\r
292 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
\r
293 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
294 'issued': ('django.db.models.fields.IntegerField', [], {}),
\r
295 'lifetime': ('django.db.models.fields.IntegerField', [], {}),
\r
296 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),
\r
297 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})
\r
299 'forum.openidnonce': {
\r
300 'Meta': {'object_name': 'OpenIdNonce'},
\r
301 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
302 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
303 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
\r
304 'timestamp': ('django.db.models.fields.IntegerField', [], {})
\r
306 'forum.questionsubscription': {
\r
307 'Meta': {'object_name': 'QuestionSubscription'},
\r
308 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
309 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
310 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 28, 23, 43, 52, 301000)'}),
\r
311 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
312 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
314 'forum.subscriptionsettings': {
\r
315 'Meta': {'object_name': 'SubscriptionSettings'},
\r
316 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
317 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
318 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
319 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
320 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
321 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
322 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
323 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
324 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
325 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
326 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
327 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
328 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
329 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
330 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
331 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
332 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
333 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
336 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
\r
337 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
338 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
339 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
340 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
341 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
342 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
343 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
344 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
347 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
348 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
349 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
350 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
351 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
352 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
\r
353 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
354 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
355 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
356 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
357 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
358 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
\r
359 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
360 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
361 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
362 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}),
\r
363 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
364 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
366 'forum.validationhash': {
\r
367 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
368 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 29, 23, 43, 52, 512000)'}),
\r
369 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
370 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
371 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
372 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
373 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
377 complete_apps = ['forum']
\r