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
7 from forum.models.utils import dbsafe_decode
\r
9 class Migration(DataMigration):
\r
11 def forwards(self, orm):
\r
12 b_count = orm.Badge.objects.count()
\r
13 print "\nConverting %d badges:" % b_count
\r
14 progress = ProgressBar(b_count)
\r
16 for b in orm.Badge.objects.all():
\r
17 b.cls = "".join([s[0].upper() + s[1:] for s in b.slug.split('-')])
\r
24 ctypes = dict([(ct.name, ct.id) for ct in orm['contenttypes.ContentType'].objects.all()])
\r
26 a_count = orm.Award.objects.count()
\r
27 print "\nConverting %d awards:" % a_count
\r
28 progress = ProgressBar(a_count)
\r
30 for a in orm.Award.objects.all():
\r
31 if a.content_type.id == ctypes['user']:
\r
35 a.node = orm.Node.objects.get(id=a.object_id)
\r
40 action = orm.Action(
\r
43 action_type = "award",
\r
44 action_date = a.awarded_at,
\r
57 a_count = orm.Action.objects.filter(action_type__in=("voteup", "votedown", "voteupcomment")).count()
\r
58 print "\nConverting %d votes:" % a_count
\r
59 progress = ProgressBar(a_count)
\r
61 for a in orm.Action.objects.filter(action_type__in=("voteup", "votedown", "voteupcomment"), canceled=False):
\r
65 value = (a.action_type in ("voteup", "voteupcomment")) and 1 or -1,
\r
67 voted_at = a.action_date
\r
76 a_count = orm.Action.objects.filter(action_type__in=("voteup", "votedown", "voteupcomment")).count()
\r
77 print "\nConverting %d votes:" % a_count
\r
78 progress = ProgressBar(a_count)
\r
80 for a in orm.Action.objects.filter(action_type="flag", canceled=False):
\r
86 flagged_at = a.action_date
\r
96 def backwards(self, orm):
\r
97 "Write your backwards methods here."
\r
101 'Meta': {'object_name': 'Group'},
\r
102 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
103 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
104 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
106 'auth.permission': {
\r
107 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
108 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\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 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
114 'Meta': {'object_name': 'User'},
\r
115 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
116 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
117 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
118 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
\r
119 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
120 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
121 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
122 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
123 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
124 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
125 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
126 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
\r
127 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
129 'contenttypes.contenttype': {
\r
130 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
131 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
132 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
133 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
134 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
137 'Meta': {'object_name': 'Action'},
\r
138 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
139 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
140 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
141 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
\r
142 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
143 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
144 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
\r
145 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
146 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
147 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
148 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})
\r
150 'forum.actionrepute': {
\r
151 'Meta': {'object_name': 'ActionRepute'},
\r
152 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}),
\r
153 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
154 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
155 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
156 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
157 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
159 'forum.authkeyuserassociation': {
\r
160 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
161 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
162 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
163 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
164 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
165 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
168 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'},
\r
169 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award'", 'to': "orm['forum.Action']"}),
\r
170 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
171 'badge': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Badge']"}),
\r
172 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
173 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
174 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
175 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
176 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}),
\r
177 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
180 'Meta': {'object_name': 'Badge'},
\r
181 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
182 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
183 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}),
\r
184 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
185 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
186 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
187 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
188 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
189 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
192 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'},
\r
193 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
194 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
195 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
196 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
197 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}),
\r
198 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
200 'forum.keyvalue': {
\r
201 'Meta': {'object_name': 'KeyValue'},
\r
202 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
203 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
204 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
\r
206 'forum.markedtag': {
\r
207 'Meta': {'object_name': 'MarkedTag'},
\r
208 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
209 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
210 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
211 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
214 'Meta': {'object_name': 'Node'},
\r
215 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
216 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
\r
217 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
218 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
219 'body': ('django.db.models.fields.TextField', [], {}),
\r
220 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
221 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}),
\r
222 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
223 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
224 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
225 'in_moderation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'moderated_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
226 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
227 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
228 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
229 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
230 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
231 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
232 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
233 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
234 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
235 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
236 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
238 'forum.noderevision': {
\r
239 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
240 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
241 'body': ('django.db.models.fields.TextField', [], {}),
\r
242 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
243 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
244 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
245 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
246 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
247 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
248 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
250 'forum.openidassociation': {
\r
251 'Meta': {'object_name': 'OpenIdAssociation'},
\r
252 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),
\r
253 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
\r
254 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
255 'issued': ('django.db.models.fields.IntegerField', [], {}),
\r
256 'lifetime': ('django.db.models.fields.IntegerField', [], {}),
\r
257 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),
\r
258 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})
\r
260 'forum.openidnonce': {
\r
261 'Meta': {'object_name': 'OpenIdNonce'},
\r
262 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
263 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
264 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
\r
265 'timestamp': ('django.db.models.fields.IntegerField', [], {})
\r
267 'forum.questionsubscription': {
\r
268 'Meta': {'object_name': 'QuestionSubscription'},
\r
269 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
270 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
271 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 3, 11, 43, 54, 540000)'}),
\r
272 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
273 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
275 'forum.subscriptionsettings': {
\r
276 'Meta': {'object_name': 'SubscriptionSettings'},
\r
277 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
278 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
279 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
280 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
281 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
282 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
283 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
284 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
285 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
286 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
287 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
288 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
289 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
290 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
291 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
292 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
293 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
294 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
297 'Meta': {'object_name': 'Tag'},
\r
298 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
299 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
300 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
301 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
302 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
303 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
304 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
305 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
308 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
309 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
310 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
311 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
312 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
313 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
314 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
315 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
316 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
317 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
318 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
319 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
320 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}),
\r
321 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
322 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
324 'forum.validationhash': {
\r
325 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
326 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 4, 11, 43, 54, 592000)'}),
\r
327 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
328 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
329 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
330 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
331 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
334 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'},
\r
335 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
336 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
337 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
338 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}),
\r
339 'value': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
340 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
344 complete_apps = ['forum']
\r