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