3 from south.db import db
\r
4 from south.v2 import SchemaMigration
\r
5 from django.db import models
\r
6 from django.conf import settings
\r
8 class Migration(SchemaMigration):
\r
10 def forwards(self, orm):
\r
12 # Adding field 'Question.accepted_answer'
\r
13 db.add_column(u'question', 'accepted_answer', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Answer'], unique=True, null=True), keep_default=False)
\r
15 #if db.backend_name == "postgres" and not "pgfulltext" in settings.DISABLED_MODULES:
\r
16 # db.execute("DROP TRIGGER tsvectorupdate ON question;")
\r
17 # db.execute("ALTER TABLE question DROP COLUMN tsv;")
\r
19 def backwards(self, orm):
\r
21 # Deleting field 'Question.accepted_answer'
\r
22 db.delete_column(u'question', 'accepted_answer_id')
\r
27 'Meta': {'object_name': 'Group'},
\r
28 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
29 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
30 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
32 'auth.permission': {
\r
33 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
34 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
35 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
36 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
37 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
40 'Meta': {'object_name': 'User'},
\r
41 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
42 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
43 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
44 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
\r
45 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
46 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
47 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
48 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
49 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
50 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
51 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
52 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
\r
53 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
55 'contenttypes.contenttype': {
\r
56 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
57 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
58 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
59 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
60 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
63 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
\r
64 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
65 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
66 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
67 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
68 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
69 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
70 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
72 'forum.anonymousnode': {
\r
73 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']},
\r
74 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
75 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
\r
76 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"})
\r
79 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},
\r
80 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
81 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
82 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
83 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
\r
84 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
85 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
87 'forum.authkeyuserassociation': {
\r
88 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
89 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
90 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
91 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
92 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
93 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
96 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
\r
97 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
98 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
\r
99 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
100 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
101 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
102 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
103 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
\r
106 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
\r
107 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
108 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
109 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
110 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
111 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
112 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
113 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
114 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
117 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},
\r
118 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
119 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
120 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
121 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
122 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
123 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
124 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),
\r
125 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
126 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
127 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})
\r
129 'forum.favoritequestion': {
\r
130 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
\r
131 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
132 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
133 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
134 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
\r
136 'forum.flaggeditem': {
\r
137 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
\r
138 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
139 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
140 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
141 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
142 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
\r
143 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
\r
145 'forum.keyvalue': {
\r
146 'Meta': {'object_name': 'KeyValue'},
\r
147 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
148 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
149 'value': ('forum.models.utils.PickledObjectField', [], {})
\r
151 'forum.likedcomment': {
\r
152 'Meta': {'object_name': 'LikedComment'},
\r
153 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
154 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
155 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),
\r
156 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
157 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
159 'forum.markedtag': {
\r
160 'Meta': {'object_name': 'MarkedTag'},
\r
161 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
162 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
163 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
164 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
167 'Meta': {'object_name': 'Node'},
\r
168 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
\r
169 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
170 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
171 'body': ('django.db.models.fields.TextField', [], {}),
\r
172 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
173 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
174 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
175 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
176 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
177 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
178 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
179 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
180 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
181 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
182 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
183 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
184 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
185 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
186 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
187 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
189 'forum.noderevision': {
\r
190 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
191 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
192 'body': ('django.db.models.fields.TextField', [], {}),
\r
193 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
194 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
195 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
196 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
197 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
198 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
199 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
201 'forum.question': {
\r
202 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
\r
203 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Answer']", 'unique': 'True', 'null': 'True'}),
\r
204 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
205 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
206 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
\r
207 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
208 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
209 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
210 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
\r
211 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
212 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
213 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),
\r
214 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}),
\r
215 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),
\r
216 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
217 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
218 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
220 'forum.questionsubscription': {
\r
221 'Meta': {'object_name': 'QuestionSubscription'},
\r
222 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
223 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
224 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 16, 11, 5, 41, 763000)'}),
\r
225 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
226 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
229 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
\r
230 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
231 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
232 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
233 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
234 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
235 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
236 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
\r
238 'forum.subscriptionsettings': {
\r
239 'Meta': {'object_name': 'SubscriptionSettings'},
\r
240 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
241 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
242 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
243 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
244 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
245 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
246 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
247 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
248 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
249 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
250 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
251 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
252 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
253 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
254 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
255 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
256 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
257 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
260 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
\r
261 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
262 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
263 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
264 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
265 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
266 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
267 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
268 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
271 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
272 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
273 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
274 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
275 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
276 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
\r
277 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
278 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
279 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
280 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
281 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
282 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
\r
283 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
284 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
285 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
286 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
287 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
289 'forum.validationhash': {
\r
290 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
291 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 11, 5, 42, 36000)'}),
\r
292 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
293 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
294 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
295 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
296 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
299 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},
\r
300 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
301 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
302 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
303 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
\r
304 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
305 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
\r
309 complete_apps = ['forum']
\r