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
10 db.rename_table('award', 'forum_award')
\r
11 db.rename_table('badge', 'forum_badge')
\r
12 db.rename_table('tag', 'forum_tag')
\r
14 # Adding model 'Flag'
\r
15 db.create_table('forum_flag', (
\r
16 ('node', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'])),
\r
17 ('action', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flag', unique=True, to=orm['forum.Action'])),
\r
18 ('reason', self.gf('django.db.models.fields.CharField')(max_length=300)),
\r
19 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
\r
20 ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),
\r
21 ('flagged_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
\r
23 #db.send_create_signal('forum', ['Flag'])
\r
25 # Adding model 'Vote'
\r
26 db.create_table('forum_vote', (
\r
27 ('node', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'])),
\r
28 ('action', self.gf('django.db.models.fields.related.ForeignKey')(related_name='vote', unique=True, to=orm['forum.Action'])),
\r
29 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
\r
30 ('value', self.gf('django.db.models.fields.SmallIntegerField')()),
\r
31 ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),
\r
32 ('voted_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
\r
34 #db.send_create_signal('forum', ['Vote'])
\r
36 # Adding field 'Badge.cls'
\r
37 db.add_column('forum_badge', 'cls', self.gf('django.db.models.fields.CharField')(max_length=50, null=True), keep_default=False)
\r
39 # Removing unique constraint on 'Badge', fields ['type', 'name']
\r
40 db.delete_unique(u'forum_badge', ['type', 'name'])
\r
42 # Deleting field 'Award.notified'
\r
43 db.delete_column(u'forum_award', 'notified')
\r
45 # Adding field 'Award.node'
\r
46 db.add_column('forum_award', 'node', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['forum.Node'], null=True), keep_default=False)
\r
48 # Adding field 'Award.trigger'
\r
49 db.add_column('forum_award', 'trigger', self.gf('django.db.models.fields.related.ForeignKey')(related_name='awards', null=True, to=orm['forum.Action']), keep_default=False)
\r
51 # Adding field 'Award.action'
\r
52 db.add_column('forum_award', 'action', self.gf('django.db.models.fields.related.ForeignKey')(default=1, related_name='award', to=orm['forum.Action']), keep_default=False)
\r
54 # Adding unique constraint on 'Award', fields ['node', 'badge', 'user']
\r
55 #db.create_unique('forum_award', ['node_id', 'badge_id', 'user_id'])
\r
58 def backwards(self, orm):
\r
60 # Deleting model 'Flag'
\r
61 db.delete_table('forum_flag')
\r
63 # Deleting model 'Vote'
\r
64 db.delete_table('forum_vote')
\r
66 # Deleting field 'Badge.cls'
\r
67 db.delete_column('forum_badge', 'cls')
\r
69 # Adding unique constraint on 'Badge', fields ['type', 'name']
\r
70 db.create_unique(u'badge', ['type', 'name'])
\r
72 # Adding field 'Award.notified'
\r
73 db.add_column(u'award', 'notified', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
\r
75 # Deleting field 'Award.node'
\r
76 db.delete_column('forum_award', 'node_id')
\r
78 # Deleting field 'Award.trigger'
\r
79 db.delete_column('forum_award', 'trigger_id')
\r
81 # Deleting field 'Award.action'
\r
82 db.delete_column('forum_award', 'action_id')
\r
84 # Removing unique constraint on 'Award', fields ['node', 'badge', 'user']
\r
85 db.delete_unique('forum_award', ['node_id', 'badge_id', 'user_id'])
\r
90 'Meta': {'object_name': 'Group'},
\r
91 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
92 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
93 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
95 'auth.permission': {
\r
96 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
97 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
98 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
99 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
100 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
103 'Meta': {'object_name': 'User'},
\r
104 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
105 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
106 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
107 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
\r
108 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
109 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
110 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
111 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
112 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
113 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
114 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
115 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
\r
116 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
118 'contenttypes.contenttype': {
\r
119 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
120 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
121 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
122 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
123 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
126 'Meta': {'object_name': 'Action'},
\r
127 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
128 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
129 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
130 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
\r
131 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
132 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
133 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
\r
134 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
135 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
136 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
137 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})
\r
139 'forum.actionrepute': {
\r
140 'Meta': {'object_name': 'ActionRepute'},
\r
141 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}),
\r
142 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
143 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
144 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
145 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
146 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
148 'forum.authkeyuserassociation': {
\r
149 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
150 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
151 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
152 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
153 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
154 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
157 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'},
\r
158 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award'", 'to': "orm['forum.Action']"}),
\r
159 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
160 'badge': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Badge']"}),
\r
161 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
162 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
163 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
164 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
165 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}),
\r
166 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
169 'Meta': {'object_name': 'Badge'},
\r
170 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
171 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
172 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}),
\r
173 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
174 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
175 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
176 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
177 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
178 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
181 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'},
\r
182 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
183 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
184 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
185 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
186 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}),
\r
187 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
189 'forum.keyvalue': {
\r
190 'Meta': {'object_name': 'KeyValue'},
\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 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
\r
195 'forum.markedtag': {
\r
196 'Meta': {'object_name': 'MarkedTag'},
\r
197 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
198 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
199 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
200 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
203 'Meta': {'object_name': 'Node'},
\r
204 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
205 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
\r
206 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
207 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
208 'body': ('django.db.models.fields.TextField', [], {}),
\r
209 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
210 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}),
\r
211 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
212 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
213 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
214 'in_moderation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'moderated_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
215 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
216 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
217 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
218 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
219 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
220 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
221 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
222 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
223 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
224 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
225 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
227 'forum.noderevision': {
\r
228 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
229 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
230 'body': ('django.db.models.fields.TextField', [], {}),
\r
231 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
232 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
233 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
234 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
235 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
236 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
237 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
239 'forum.openidassociation': {
\r
240 'Meta': {'object_name': 'OpenIdAssociation'},
\r
241 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),
\r
242 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
\r
243 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
244 'issued': ('django.db.models.fields.IntegerField', [], {}),
\r
245 'lifetime': ('django.db.models.fields.IntegerField', [], {}),
\r
246 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),
\r
247 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})
\r
249 'forum.openidnonce': {
\r
250 'Meta': {'object_name': 'OpenIdNonce'},
\r
251 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
252 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
253 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
\r
254 'timestamp': ('django.db.models.fields.IntegerField', [], {})
\r
256 'forum.questionsubscription': {
\r
257 'Meta': {'object_name': 'QuestionSubscription'},
\r
258 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
259 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
260 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 3, 11, 41, 55, 831000)'}),
\r
261 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
262 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
264 'forum.subscriptionsettings': {
\r
265 'Meta': {'object_name': 'SubscriptionSettings'},
\r
266 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
267 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
268 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
269 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
270 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
271 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
272 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
273 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
274 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
275 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
276 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
277 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
278 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
279 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
280 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
281 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
282 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
283 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
286 'Meta': {'object_name': 'Tag'},
\r
287 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
288 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
289 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
290 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
291 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
292 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
293 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
294 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
297 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
298 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
299 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
300 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
301 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
302 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
303 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
304 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
305 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
306 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
307 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
308 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
309 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}),
\r
310 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
311 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
313 'forum.validationhash': {
\r
314 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
315 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 4, 11, 41, 59, 140000)'}),
\r
316 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
317 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
318 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
319 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
320 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
323 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'},
\r
324 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
325 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
326 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
327 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}),
\r
328 'value': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
329 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
333 complete_apps = ['forum']
\r