-from south.v2 import DataMigration\r
-from south.orm import FakeORM\r
-\r
-class Migration(DataMigration):\r
- def forwards(self, orm):\r
- pass\r
-\r
-\r
- def backwards(self, orm):\r
- "Write your backwards methods here."\r
-\r
- models = {\r
- 'auth.group': {\r
- 'Meta': {'object_name': 'Group'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),\r
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})\r
- },\r
- 'auth.permission': {\r
- 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},\r
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})\r
- },\r
- 'auth.user': {\r
- 'Meta': {'object_name': 'User'},\r
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),\r
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),\r
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),\r
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})\r
- },\r
- 'contenttypes.contenttype': {\r
- 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},\r
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})\r
- },\r
- 'forum.action': {\r
- 'Meta': {'object_name': 'Action'},\r
- 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),\r
- 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),\r
- 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),\r
- 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}),\r
- 'real_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'proxied_actions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.actionrepute': {\r
- 'Meta': {'object_name': 'ActionRepute'},\r
- 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}),\r
- 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),\r
- 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})\r
- },\r
- 'forum.authkeyuserassociation': {\r
- 'Meta': {'object_name': 'AuthKeyUserAssociation'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.award': {\r
- 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'},\r
- 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}),\r
- 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),\r
- 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.badge': {\r
- 'Meta': {'object_name': 'Badge'},\r
- 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}),\r
- 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'type': ('django.db.models.fields.SmallIntegerField', [], {})\r
- },\r
- 'forum.flag': {\r
- 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'},\r
- 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}),\r
- 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}),\r
- 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.keyvalue': {\r
- 'Meta': {'object_name': 'KeyValue'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})\r
- },\r
- 'forum.markedtag': {\r
- 'Meta': {'object_name': 'MarkedTag'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),\r
- 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.node': {\r
- 'Meta': {'object_name': 'Node'},\r
- 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),\r
- 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),\r
- 'body': ('django.db.models.fields.TextField', [], {}),\r
- 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),\r
- 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),\r
- 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),\r
- 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})\r
- },\r
- 'forum.noderevision': {\r
- 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),\r
- 'body': ('django.db.models.fields.TextField', [], {}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),\r
- 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})\r
- },\r
- 'forum.nodestate': {\r
- 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'},\r
- 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}),\r
- 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'})\r
- },\r
- 'forum.openidassociation': {\r
- 'Meta': {'object_name': 'OpenIdAssociation'},\r
- 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),\r
- 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'issued': ('django.db.models.fields.IntegerField', [], {}),\r
- 'lifetime': ('django.db.models.fields.IntegerField', [], {}),\r
- 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),\r
- 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})\r
- },\r
- 'forum.openidnonce': {\r
- 'Meta': {'object_name': 'OpenIdNonce'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),\r
- 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),\r
- 'timestamp': ('django.db.models.fields.IntegerField', [], {})\r
- },\r
- 'forum.questionsubscription': {\r
- 'Meta': {'object_name': 'QuestionSubscription'},\r
- 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 7, 1, 13, 6, 46, 789996)'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.subscriptionsettings': {\r
- 'Meta': {'object_name': 'SubscriptionSettings'},\r
- 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),\r
- 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),\r
- 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'send_digest': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})\r
- },\r
- 'forum.tag': {\r
- 'Meta': {'object_name': 'Tag'},\r
- 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})\r
- },\r
- 'forum.user': {\r
- 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},\r
- 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),\r
- 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),\r
- 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}),\r
- 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),\r
- 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})\r
- },\r
- 'forum.userproperty': {\r
- 'Meta': {'unique_together': "(('user', 'key'),)", 'object_name': 'UserProperty'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'max_length': '16'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'properties'", 'to': "orm['forum.User']"}),\r
- 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})\r
- },\r
- 'forum.validationhash': {\r
- 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},\r
- 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 7, 2, 13, 6, 46, 883626)'}),\r
- 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.vote': {\r
- 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'},\r
- 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),\r
- 'value': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})\r
- }\r
- }\r
-\r
- complete_apps = ['forum']\r
-\r
-orm = FakeORM(Migration, "forum")\r
-\r
+from south.v2 import DataMigration
+from south.orm import FakeORM
+
+class Migration(DataMigration):
+ def forwards(self, orm):
+ pass
+
+
+ def backwards(self, orm):
+ "Write your backwards methods here."
+
+ models = {
+ 'auth.group': {
+ 'Meta': {'object_name': 'Group'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
+ 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
+ },
+ 'auth.permission': {
+ 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
+ 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+ 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
+ },
+ 'auth.user': {
+ 'Meta': {'object_name': 'User'},
+ 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+ 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+ 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+ 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+ 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
+ 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
+ },
+ 'contenttypes.contenttype': {
+ 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
+ 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+ },
+ 'forum.action': {
+ 'Meta': {'object_name': 'Action'},
+ 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
+ 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
+ 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
+ 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
+ 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
+ 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}),
+ 'real_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'proxied_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})
+ },
+ 'forum.actionrepute': {
+ 'Meta': {'object_name': 'ActionRepute'},
+ 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}),
+ 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
+ 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})
+ },
+ 'forum.authkeyuserassociation': {
+ 'Meta': {'object_name': 'AuthKeyUserAssociation'},
+ 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
+ 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
+ },
+ 'forum.award': {
+ 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'},
+ 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}),
+ 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
+ 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
+ },
+ 'forum.badge': {
+ 'Meta': {'object_name': 'Badge'},
+ 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
+ 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}),
+ 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'type': ('django.db.models.fields.SmallIntegerField', [], {})
+ },
+ 'forum.flag': {
+ 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'},
+ 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}),
+ 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}),
+ 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"})
+ },
+ 'forum.keyvalue': {
+ 'Meta': {'object_name': 'KeyValue'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
+ 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
+ },
+ 'forum.markedtag': {
+ 'Meta': {'object_name': 'MarkedTag'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
+ 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
+ },
+ 'forum.node': {
+ 'Meta': {'object_name': 'Node'},
+ 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
+ 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
+ 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
+ 'body': ('django.db.models.fields.TextField', [], {}),
+ 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
+ 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+ 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
+ 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
+ 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
+ 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
+ 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
+ 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
+ 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}),
+ 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
+ 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
+ },
+ 'forum.noderevision': {
+ 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
+ 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
+ 'body': ('django.db.models.fields.TextField', [], {}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
+ 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
+ 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
+ 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
+ },
+ 'forum.nodestate': {
+ 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'},
+ 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}),
+ 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
+ },
+ 'forum.openidassociation': {
+ 'Meta': {'object_name': 'OpenIdAssociation'},
+ 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),
+ 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'issued': ('django.db.models.fields.IntegerField', [], {}),
+ 'lifetime': ('django.db.models.fields.IntegerField', [], {}),
+ 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),
+ 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})
+ },
+ 'forum.openidnonce': {
+ 'Meta': {'object_name': 'OpenIdNonce'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+ 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
+ 'timestamp': ('django.db.models.fields.IntegerField', [], {})
+ },
+ 'forum.questionsubscription': {
+ 'Meta': {'object_name': 'QuestionSubscription'},
+ 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 7, 1, 13, 6, 46, 789996)'}),
+ 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
+ },
+ 'forum.subscriptionsettings': {
+ 'Meta': {'object_name': 'SubscriptionSettings'},
+ 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
+ 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
+ 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
+ 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'send_digest': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
+ 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
+ },
+ 'forum.tag': {
+ 'Meta': {'object_name': 'Tag'},
+ 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}),
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
+ 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
+ },
+ 'forum.user': {
+ 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
+ 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+ 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
+ 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
+ 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
+ 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
+ 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
+ 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
+ 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
+ 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}),
+ 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
+ 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
+ },
+ 'forum.userproperty': {
+ 'Meta': {'unique_together': "(('user', 'key'),)", 'object_name': 'UserProperty'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'key': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'properties'", 'to': "orm['forum.User']"}),
+ 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
+ },
+ 'forum.validationhash': {
+ 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
+ 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 7, 2, 13, 6, 46, 883626)'}),
+ 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
+ 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
+ },
+ 'forum.vote': {
+ 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'},
+ 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
+ 'value': ('django.db.models.fields.SmallIntegerField', [], {}),
+ 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
+ }
+ }
+
+ complete_apps = ['forum']
+
+orm = FakeORM(Migration, "forum")
+