3 from south.db import db
\r
4 from south.v2 import DataMigration
\r
5 from django.db import models
\r
6 from forum.migrations import ProgressBar
\r
8 class Migration(DataMigration):
\r
10 def forwards(self, orm):
\r
13 return get_abs_par(n.parent)
\r
17 n_count = orm.Node.objects.count()
\r
18 print "\nConverting %d nodes:" % n_count
\r
19 progress = ProgressBar(n_count)
\r
21 for n in orm.Node.objects.all():
\r
23 n.abs_parent = get_abs_par(n)
\r
32 def backwards(self, orm):
\r
33 "Write your backwards methods here."
\r
37 'Meta': {'object_name': 'Group'},
\r
38 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
39 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
40 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
42 'auth.permission': {
\r
43 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
44 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
45 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
46 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
47 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
50 'Meta': {'object_name': 'User'},
\r
51 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
52 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
53 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
54 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
\r
55 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
56 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
57 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
58 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
59 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
60 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
61 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
62 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
\r
63 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
65 'contenttypes.contenttype': {
\r
66 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
67 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
68 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
69 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
70 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
73 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
\r
74 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
75 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
76 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
77 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
78 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
79 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
80 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
82 'forum.anonymousnode': {
\r
83 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']},
\r
84 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
85 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
\r
86 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"})
\r
89 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},
\r
90 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
91 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
92 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
93 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}),
\r
94 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
95 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
97 'forum.authkeyuserassociation': {
\r
98 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
99 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
100 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
101 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
102 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
103 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
106 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},
\r
107 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
108 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
\r
109 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
110 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
111 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
112 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
113 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
\r
116 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
\r
117 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
118 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
119 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
120 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
121 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
122 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
123 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
124 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
126 'forum.favoritequestion': {
\r
127 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},
\r
128 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
129 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
130 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
131 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})
\r
133 'forum.flaggeditem': {
\r
134 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},
\r
135 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
136 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
137 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
138 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
139 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),
\r
140 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})
\r
142 'forum.keyvalue': {
\r
143 'Meta': {'object_name': 'KeyValue'},
\r
144 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
145 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
146 'value': ('forum.models.utils.PickledObjectField', [], {})
\r
148 'forum.markedtag': {
\r
149 'Meta': {'object_name': 'MarkedTag'},
\r
150 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
151 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
152 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
153 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
156 'Meta': {'object_name': 'Node'},
\r
157 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
158 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
\r
159 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
160 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
161 'body': ('django.db.models.fields.TextField', [], {}),
\r
162 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
163 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
164 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
165 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
166 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
167 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
168 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
169 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
170 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
171 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
172 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
173 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
174 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
175 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
176 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
177 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
179 'forum.noderevision': {
\r
180 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
181 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
182 'body': ('django.db.models.fields.TextField', [], {}),
\r
183 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
184 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
185 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
186 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
187 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
188 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
189 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
191 'forum.question': {
\r
192 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},
\r
193 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'question_accepting'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Answer']"}),
\r
194 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
195 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
\r
196 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
197 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
198 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
199 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),
\r
200 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
201 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
202 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
203 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}),
\r
204 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),
\r
205 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
206 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
207 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
\r
209 'forum.questionsubscription': {
\r
210 'Meta': {'object_name': 'QuestionSubscription'},
\r
211 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
212 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
213 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 1, 20, 29, 905000)'}),
\r
214 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
215 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
218 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},
\r
219 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
220 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
221 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
222 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),
\r
223 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
224 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
225 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
226 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
227 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})
\r
229 'forum.subscriptionsettings': {
\r
230 'Meta': {'object_name': 'SubscriptionSettings'},
\r
231 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
232 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
233 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
234 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
235 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
236 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
237 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
238 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
239 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
240 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
241 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
242 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
243 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
244 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
245 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
246 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
247 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
248 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
251 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
\r
252 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
253 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
254 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
255 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
256 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
257 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
258 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
259 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
262 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
263 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
264 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
265 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
266 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
267 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
\r
268 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
269 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
270 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
271 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
272 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
273 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
\r
274 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
275 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
276 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
\r
277 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
278 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
280 'forum.validationhash': {
\r
281 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
282 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 18, 1, 20, 29, 974000)'}),
\r
283 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
284 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
285 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
286 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
287 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
290 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},
\r
291 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
292 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
293 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
294 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
\r
295 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
296 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
\r
300 complete_apps = ['forum']
\r