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