3 from south.db import db
\r
4 from south.v2 import DataMigration
\r
5 from django.db import models
\r
7 class Migration(DataMigration):
\r
9 def forwards(self, orm):
\r
10 for n in orm.Node.objects.all():
\r
12 n.active_revision = n.revisions.order_by('-id')[0]
\r
15 r = orm.NodeRevision(author=n.author, body=n.body, title=n.title, revised_at=datetime.datetime.now(),
\r
16 tagnames=n.tagnames, summary='Initial Revision', revision=1, node=n)
\r
18 n.active_revision = r
\r
22 def backwards(self, orm):
\r
23 "Write your backwards methods here."
\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.anonymousanswer': {
\r
73 'Meta': {'object_name': 'AnonymousAnswer'},
\r
74 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
75 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
76 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
77 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
\r
78 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),
\r
79 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
\r
80 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
81 'text': ('django.db.models.fields.TextField', [], {}),
\r
82 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
84 'forum.anonymousquestion': {
\r
85 'Meta': {'object_name': 'AnonymousQuestion'},
\r
86 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
87 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
88 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
89 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
\r
90 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
\r
91 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),
\r
92 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
93 'text': ('django.db.models.fields.TextField', [], {}),
\r
94 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
95 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
98 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},
\r
99 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
100 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
101 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
102 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
\r
103 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
104 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
106 'forum.authkeyuserassociation': {
\r
107 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
108 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
109 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
110 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
111 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
112 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
115 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
\r
116 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
117 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
\r
118 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
119 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
120 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
121 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
122 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
\r
125 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
\r
126 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
127 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
128 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
129 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
130 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
131 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
132 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
133 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
136 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},
\r
137 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
138 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
139 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
140 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
141 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
142 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
143 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),
\r
144 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
145 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
146 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})
\r
148 'forum.favoritequestion': {
\r
149 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
\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 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
153 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
\r
155 'forum.flaggeditem': {
\r
156 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
\r
157 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
158 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
159 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
160 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
161 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
\r
162 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
\r
164 'forum.keyvalue': {
\r
165 'Meta': {'object_name': 'KeyValue'},
\r
166 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
167 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
168 'value': ('forum.models.utils.PickledObjectField', [], {})
\r
170 'forum.likedcomment': {
\r
171 'Meta': {'object_name': 'LikedComment'},
\r
172 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
173 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
174 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),
\r
175 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
176 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
178 'forum.markedtag': {
\r
179 'Meta': {'object_name': 'MarkedTag'},
\r
180 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
181 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
182 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
183 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
186 'Meta': {'object_name': 'Node'},
\r
187 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
\r
188 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
189 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
190 'body': ('django.db.models.fields.TextField', [], {}),
\r
191 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
192 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
193 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
194 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
195 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
196 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
197 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
198 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
199 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
200 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
201 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
202 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
203 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
204 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
205 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
206 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
208 'forum.noderevision': {
\r
209 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
210 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
211 'body': ('django.db.models.fields.TextField', [], {}),
\r
212 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
213 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
214 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),
\r
215 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
216 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
217 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
218 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
220 'forum.question': {
\r
221 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
\r
222 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
223 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
224 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
\r
225 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
226 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
227 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
228 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
\r
229 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
230 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
231 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),
\r
232 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}),
\r
233 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),
\r
234 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
235 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
236 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
238 'forum.questionsubscription': {
\r
239 'Meta': {'object_name': 'QuestionSubscription'},
\r
240 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
241 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
242 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 17, 56, 41, 918000)'}),
\r
243 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
244 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
247 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
\r
248 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
249 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
250 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
251 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
252 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
253 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
254 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
\r
256 'forum.subscriptionsettings': {
\r
257 'Meta': {'object_name': 'SubscriptionSettings'},
\r
258 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
259 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
260 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
261 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
262 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
263 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
264 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
265 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
266 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
267 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
268 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
269 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
270 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
271 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
272 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
273 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
274 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
275 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
278 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
\r
279 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
280 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
281 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
282 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
283 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
284 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
285 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
286 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
289 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
290 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
291 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
292 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
293 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
294 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
\r
295 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
296 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
297 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
298 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
299 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
300 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
\r
301 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
302 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
303 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
304 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
305 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
307 'forum.validationhash': {
\r
308 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
309 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 17, 56, 41, 986000)'}),
\r
310 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
311 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
312 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
313 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
314 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
317 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},
\r
318 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
319 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
320 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
321 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
\r
322 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
323 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
\r
327 complete_apps = ['forum']
\r