# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding field 'Answer.is_spam'
        db.add_column(u'questions_answer', 'is_spam',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False)

        # Adding field 'Answer.marked_as_spam'
        db.add_column(u'questions_answer', 'marked_as_spam',
                      self.gf('django.db.models.fields.DateTimeField')(default=None, null=True),
                      keep_default=False)

        # Adding field 'Answer.marked_as_spam_by'
        db.add_column(u'questions_answer', 'marked_as_spam_by',
                      self.gf('django.db.models.fields.related.ForeignKey')(related_name='answers_marked_as_spam', null=True, to=orm['auth.User']),
                      keep_default=False)

        # Adding field 'Question.is_spam'
        db.add_column(u'questions_question', 'is_spam',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False)

        # Adding field 'Question.marked_as_spam'
        db.add_column(u'questions_question', 'marked_as_spam',
                      self.gf('django.db.models.fields.DateTimeField')(default=None, null=True),
                      keep_default=False)

        # Adding field 'Question.marked_as_spam_by'
        db.add_column(u'questions_question', 'marked_as_spam_by',
                      self.gf('django.db.models.fields.related.ForeignKey')(related_name='questions_marked_as_spam', null=True, to=orm['auth.User']),
                      keep_default=False)


    def backwards(self, orm):
        # Deleting field 'Answer.is_spam'
        db.delete_column(u'questions_answer', 'is_spam')

        # Deleting field 'Answer.marked_as_spam'
        db.delete_column(u'questions_answer', 'marked_as_spam')

        # Deleting field 'Answer.marked_as_spam_by'
        db.delete_column(u'questions_answer', 'marked_as_spam_by_id')

        # Deleting field 'Question.is_spam'
        db.delete_column(u'questions_question', 'is_spam')

        # Deleting field 'Question.marked_as_spam'
        db.delete_column(u'questions_question', 'marked_as_spam')

        # Deleting field 'Question.marked_as_spam_by'
        db.delete_column(u'questions_question', 'marked_as_spam_by_id')


    models = {
        u'auth.group': {
            'Meta': {'object_name': 'Group'},
            u'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': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
        },
        u'auth.permission': {
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        u'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', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            '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', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
        },
        u'contenttypes.contenttype': {
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            u'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'})
        },
        u'products.platform': {
            'Meta': {'object_name': 'Platform'},
            'display_order': ('django.db.models.fields.IntegerField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
            'visible': ('django.db.models.fields.BooleanField', [], {})
        },
        u'products.product': {
            'Meta': {'ordering': "['display_order']", 'object_name': 'Product'},
            'description': ('django.db.models.fields.TextField', [], {}),
            'display_order': ('django.db.models.fields.IntegerField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '250', 'null': 'True', 'blank': 'True'}),
            'image_cachebuster': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '32', 'null': 'True'}),
            'image_offset': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'}),
            'platforms': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['products.Platform']", 'symmetrical': 'False'}),
            'questions_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
            'sprite_height': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
            'visible': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
        },
        u'products.topic': {
            'Meta': {'ordering': "['product', 'display_order']", 'unique_together': "(('slug', 'product'),)", 'object_name': 'Topic'},
            'description': ('django.db.models.fields.TextField', [], {}),
            'display_order': ('django.db.models.fields.IntegerField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '250', 'null': 'True', 'blank': 'True'}),
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'subtopics'", 'null': 'True', 'to': u"orm['products.Topic']"}),
            'product': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'topics'", 'to': u"orm['products.Product']"}),
            'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
            'visible': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
        },
        u'questions.answer': {
            'Meta': {'ordering': "['created']", 'object_name': 'Answer'},
            'content': ('django.db.models.fields.TextField', [], {}),
            'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': u"orm['auth.User']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'marked_as_spam': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
            'marked_as_spam_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers_marked_as_spam'", 'null': 'True', 'to': u"orm['auth.User']"}),
            'page': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
            'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': u"orm['questions.Question']"}),
            'updated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'updated_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers_updated'", 'null': 'True', 'to': u"orm['auth.User']"})
        },
        u'questions.answervote': {
            'Meta': {'object_name': 'AnswerVote'},
            'anonymous_id': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_index': 'True'}),
            'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': u"orm['questions.Answer']"}),
            'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answer_votes'", 'null': 'True', 'to': u"orm['auth.User']"}),
            'helpful': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        u'questions.question': {
            'Meta': {'ordering': "['-updated']", 'object_name': 'Question'},
            'content': ('django.db.models.fields.TextField', [], {}),
            'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': u"orm['auth.User']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_archived': ('django.db.models.fields.NullBooleanField', [], {'default': 'False', 'null': 'True', 'blank': 'True'}),
            'is_locked': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'last_answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_reply_in'", 'null': 'True', 'to': u"orm['questions.Answer']"}),
            'locale': ('kitsune.sumo.models.LocaleField', [], {'default': "'en-US'", 'max_length': '7'}),
            'marked_as_spam': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
            'marked_as_spam_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions_marked_as_spam'", 'null': 'True', 'to': u"orm['auth.User']"}),
            'num_answers': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'}),
            'num_votes_past_week': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
            'products': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['products.Product']", 'symmetrical': 'False'}),
            'solution': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'solution_for'", 'null': 'True', 'to': u"orm['questions.Answer']"}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'topics': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['products.Topic']", 'symmetrical': 'False'}),
            'updated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'updated_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions_updated'", 'null': 'True', 'to': u"orm['auth.User']"})
        },
        u'questions.questionmetadata': {
            'Meta': {'unique_together': "(('question', 'name'),)", 'object_name': 'QuestionMetaData'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
            'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'metadata_set'", 'to': u"orm['questions.Question']"}),
            'value': ('django.db.models.fields.TextField', [], {})
        },
        u'questions.questionvisits': {
            'Meta': {'object_name': 'QuestionVisits'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'question': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['questions.Question']", 'unique': 'True'}),
            'visits': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'})
        },
        u'questions.questionvote': {
            'Meta': {'object_name': 'QuestionVote'},
            'anonymous_id': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_index': 'True'}),
            'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'question_votes'", 'null': 'True', 'to': u"orm['auth.User']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': u"orm['questions.Question']"})
        },
        u'questions.votemetadata': {
            'Meta': {'object_name': 'VoteMetadata'},
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_index': 'True'}),
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'value': ('django.db.models.fields.CharField', [], {'max_length': '1000'})
        }
    }

    complete_apps = ['questions']
f6adf4ac328402f50de344fee37d6ea43ec1be86
<mask token>


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.add_column(u'questions_answer', 'is_spam', self.gf(
            'django.db.models.fields.BooleanField')(default=False),
            keep_default=False)
        db.add_column(u'questions_answer', 'marked_as_spam', self.gf(
            'django.db.models.fields.DateTimeField')(default=None, null=
            True), keep_default=False)
        db.add_column(u'questions_answer', 'marked_as_spam_by', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'answers_marked_as_spam', null=True, to=orm['auth.User']),
            keep_default=False)
        db.add_column(u'questions_question', 'is_spam', self.gf(
            'django.db.models.fields.BooleanField')(default=False),
            keep_default=False)
        db.add_column(u'questions_question', 'marked_as_spam', self.gf(
            'django.db.models.fields.DateTimeField')(default=None, null=
            True), keep_default=False)
        db.add_column(u'questions_question', 'marked_as_spam_by', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'questions_marked_as_spam', null=True, to=orm['auth.User']),
            keep_default=False)
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.add_column(u'questions_answer', 'is_spam', self.gf(
            'django.db.models.fields.BooleanField')(default=False),
            keep_default=False)
        db.add_column(u'questions_answer', 'marked_as_spam', self.gf(
            'django.db.models.fields.DateTimeField')(default=None, null=
            True), keep_default=False)
        db.add_column(u'questions_answer', 'marked_as_spam_by', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'answers_marked_as_spam', null=True, to=orm['auth.User']),
            keep_default=False)
        db.add_column(u'questions_question', 'is_spam', self.gf(
            'django.db.models.fields.BooleanField')(default=False),
            keep_default=False)
        db.add_column(u'questions_question', 'marked_as_spam', self.gf(
            'django.db.models.fields.DateTimeField')(default=None, null=
            True), keep_default=False)
        db.add_column(u'questions_question', 'marked_as_spam_by', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'questions_marked_as_spam', null=True, to=orm['auth.User']),
            keep_default=False)

    def backwards(self, orm):
        db.delete_column(u'questions_answer', 'is_spam')
        db.delete_column(u'questions_answer', 'marked_as_spam')
        db.delete_column(u'questions_answer', 'marked_as_spam_by_id')
        db.delete_column(u'questions_question', 'is_spam')
        db.delete_column(u'questions_question', 'marked_as_spam')
        db.delete_column(u'questions_question', 'marked_as_spam_by_id')
    <mask token>
    <mask token>

<mask token>


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.add_column(u'questions_answer', 'is_spam', self.gf(
            'django.db.models.fields.BooleanField')(default=False),
            keep_default=False)
        db.add_column(u'questions_answer', 'marked_as_spam', self.gf(
            'django.db.models.fields.DateTimeField')(default=None, null=
            True), keep_default=False)
        db.add_column(u'questions_answer', 'marked_as_spam_by', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'answers_marked_as_spam', null=True, to=orm['auth.User']),
            keep_default=False)
        db.add_column(u'questions_question', 'is_spam', self.gf(
            'django.db.models.fields.BooleanField')(default=False),
            keep_default=False)
        db.add_column(u'questions_question', 'marked_as_spam', self.gf(
            'django.db.models.fields.DateTimeField')(default=None, null=
            True), keep_default=False)
        db.add_column(u'questions_question', 'marked_as_spam_by', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'questions_marked_as_spam', null=True, to=orm['auth.User']),
            keep_default=False)

    def backwards(self, orm):
        db.delete_column(u'questions_answer', 'is_spam')
        db.delete_column(u'questions_answer', 'marked_as_spam')
        db.delete_column(u'questions_answer', 'marked_as_spam_by_id')
        db.delete_column(u'questions_question', 'is_spam')
        db.delete_column(u'questions_question', 'marked_as_spam')
        db.delete_column(u'questions_question', 'marked_as_spam_by_id')
    models = {u'auth.group': {'Meta': {'object_name': 'Group'}, u'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':
        u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}
        )}, u'auth.permission': {'Meta': {'ordering':
        "(u'content_type__app_label', u'content_type__model', u'codename')",
        'unique_together': "((u'content_type', u'codename'),)",
        'object_name': 'Permission'}, 'codename': (
        'django.db.models.fields.CharField', [], {'max_length': '100'}),
        'content_type': ('django.db.models.fields.related.ForeignKey', [],
        {'to': u"orm['contenttypes.ContentType']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '50'})}, u'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', [], {
        'symmetrical': 'False', 'related_name': "u'user_set'", 'blank':
        'True', 'to': u"orm['auth.Group']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'is_active': ('django.db.models.fields.BooleanField', [], {
        'default': 'True'}), 'is_staff': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'}),
        'is_superuser': ('django.db.models.fields.BooleanField', [], {
        'default': 'False'}), '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', [], {
        'symmetrical': 'False', 'related_name': "u'user_set'", 'blank':
        'True', 'to': u"orm['auth.Permission']"}), 'username': (
        'django.db.models.fields.CharField', [], {'unique': 'True',
        'max_length': '30'})}, u'contenttypes.contenttype': {'Meta': {
        'ordering': "('name',)", 'unique_together':
        "(('app_label', 'model'),)", 'object_name': 'ContentType',
        'db_table': "'django_content_type'"}, 'app_label': (
        'django.db.models.fields.CharField', [], {'max_length': '100'}),
        u'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'})}, u'products.platform': {'Meta': {
        'object_name': 'Platform'}, 'display_order': (
        'django.db.models.fields.IntegerField', [], {}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '255'}), 'slug': ('django.db.models.fields.SlugField', [], {
        'max_length': '50'}), 'visible': (
        'django.db.models.fields.BooleanField', [], {})},
        u'products.product': {'Meta': {'ordering': "['display_order']",
        'object_name': 'Product'}, 'description': (
        'django.db.models.fields.TextField', [], {}), 'display_order': (
        'django.db.models.fields.IntegerField', [], {}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'image': ('django.db.models.fields.files.ImageField', [], {
        'max_length': '250', 'null': 'True', 'blank': 'True'}),
        'image_cachebuster': ('django.db.models.fields.CharField', [], {
        'default': 'None', 'max_length': '32', 'null': 'True'}),
        'image_offset': ('django.db.models.fields.IntegerField', [], {
        'default': 'None', 'null': 'True'}), 'platforms': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['products.Platform']", 'symmetrical': 'False'}),
        'questions_enabled': ('django.db.models.fields.BooleanField', [], {
        'default': 'False'}), 'slug': ('django.db.models.fields.SlugField',
        [], {'max_length': '50'}), 'sprite_height': (
        'django.db.models.fields.IntegerField', [], {'default': 'None',
        'null': 'True'}), 'title': ('django.db.models.fields.CharField', [],
        {'max_length': '255', 'db_index': 'True'}), 'visible': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'})},
        u'products.topic': {'Meta': {'ordering':
        "['product', 'display_order']", 'unique_together':
        "(('slug', 'product'),)", 'object_name': 'Topic'}, 'description': (
        'django.db.models.fields.TextField', [], {}), 'display_order': (
        'django.db.models.fields.IntegerField', [], {}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'image': ('django.db.models.fields.files.ImageField', [], {
        'max_length': '250', 'null': 'True', 'blank': 'True'}), 'parent': (
        'django.db.models.fields.related.ForeignKey', [], {'blank': 'True',
        'related_name': "'subtopics'", 'null': 'True', 'to':
        u"orm['products.Topic']"}), 'product': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'topics'", 'to': u"orm['products.Product']"}), 'slug': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'db_index': 'True'}), 'title': ('django.db.models.fields.CharField',
        [], {'max_length': '255', 'db_index': 'True'}), 'visible': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'})},
        u'questions.answer': {'Meta': {'ordering': "['created']",
        'object_name': 'Answer'}, 'content': (
        'django.db.models.fields.TextField', [], {}), 'created': (
        'django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'creator': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'answers'", 'to': u"orm['auth.User']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'is_spam': ('django.db.models.fields.BooleanField', [], {'default':
        'False'}), 'marked_as_spam': (
        'django.db.models.fields.DateTimeField', [], {'default': 'None',
        'null': 'True'}), 'marked_as_spam_by': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'answers_marked_as_spam'", 'null': 'True', 'to':
        u"orm['auth.User']"}), 'page': (
        'django.db.models.fields.IntegerField', [], {'default': '1'}),
        'question': ('django.db.models.fields.related.ForeignKey', [], {
        'related_name': "'answers'", 'to': u"orm['questions.Question']"}),
        'updated': ('django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'updated_by': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'answers_updated'", 'null': 'True', 'to': u"orm['auth.User']"})},
        u'questions.answervote': {'Meta': {'object_name': 'AnswerVote'},
        'anonymous_id': ('django.db.models.fields.CharField', [], {
        'max_length': '40', 'db_index': 'True'}), 'answer': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'votes'", 'to': u"orm['questions.Answer']"}), 'created': (
        'django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'creator': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'answer_votes'", 'null': 'True', 'to': u"orm['auth.User']"}),
        'helpful': ('django.db.models.fields.BooleanField', [], {'default':
        'False'}), u'id': ('django.db.models.fields.AutoField', [], {
        'primary_key': 'True'})}, u'questions.question': {'Meta': {
        'ordering': "['-updated']", 'object_name': 'Question'}, 'content':
        ('django.db.models.fields.TextField', [], {}), 'created': (
        'django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'creator': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'questions'", 'to': u"orm['auth.User']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'is_archived': ('django.db.models.fields.NullBooleanField', [], {
        'default': 'False', 'null': 'True', 'blank': 'True'}), 'is_locked':
        ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
        'is_spam': ('django.db.models.fields.BooleanField', [], {'default':
        'False'}), 'last_answer': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'last_reply_in'", 'null': 'True', 'to': u"orm['questions.Answer']"
        }), 'locale': ('kitsune.sumo.models.LocaleField', [], {'default':
        "'en-US'", 'max_length': '7'}), 'marked_as_spam': (
        'django.db.models.fields.DateTimeField', [], {'default': 'None',
        'null': 'True'}), 'marked_as_spam_by': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'questions_marked_as_spam'", 'null': 'True', 'to':
        u"orm['auth.User']"}), 'num_answers': (
        'django.db.models.fields.IntegerField', [], {'default': '0',
        'db_index': 'True'}), 'num_votes_past_week': (
        'django.db.models.fields.PositiveIntegerField', [], {'default': '0',
        'db_index': 'True'}), 'products': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['products.Product']", 'symmetrical': 'False'}), 'solution': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'solution_for'", 'null': 'True', 'to': u"orm['questions.Answer']"}
        ), 'title': ('django.db.models.fields.CharField', [], {'max_length':
        '255'}), 'topics': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['products.Topic']", 'symmetrical': 'False'}), 'updated': (
        'django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'updated_by': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'questions_updated'", 'null': 'True', 'to': u"orm['auth.User']"})},
        u'questions.questionmetadata': {'Meta': {'unique_together':
        "(('question', 'name'),)", 'object_name': 'QuestionMetaData'},
        u'id': ('django.db.models.fields.AutoField', [], {'primary_key':
        'True'}), 'name': ('django.db.models.fields.SlugField', [], {
        'max_length': '50'}), 'question': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'metadata_set'", 'to': u"orm['questions.Question']"}), 'value': (
        'django.db.models.fields.TextField', [], {})},
        u'questions.questionvisits': {'Meta': {'object_name':
        'QuestionVisits'}, u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'question': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['questions.Question']", 'unique': 'True'}), 'visits': (
        'django.db.models.fields.IntegerField', [], {'db_index': 'True'})},
        u'questions.questionvote': {'Meta': {'object_name': 'QuestionVote'},
        'anonymous_id': ('django.db.models.fields.CharField', [], {
        'max_length': '40', 'db_index': 'True'}), 'created': (
        'django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'creator': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'question_votes'", 'null': 'True', 'to': u"orm['auth.User']"}),
        u'id': ('django.db.models.fields.AutoField', [], {'primary_key':
        'True'}), 'question': ('django.db.models.fields.related.ForeignKey',
        [], {'related_name': "'votes'", 'to': u"orm['questions.Question']"}
        )}, u'questions.votemetadata': {'Meta': {'object_name':
        'VoteMetadata'}, 'content_type': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'
        }), u'id': ('django.db.models.fields.AutoField', [], {'primary_key':
        'True'}), 'key': ('django.db.models.fields.CharField', [], {
        'max_length': '40', 'db_index': 'True'}), 'object_id': (
        'django.db.models.fields.PositiveIntegerField', [], {'null': 'True',
        'blank': 'True'}), 'value': ('django.db.models.fields.CharField', [
        ], {'max_length': '1000'})}}
    complete_apps = ['questions']

import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.add_column(u'questions_answer', 'is_spam', self.gf(
            'django.db.models.fields.BooleanField')(default=False),
            keep_default=False)
        db.add_column(u'questions_answer', 'marked_as_spam', self.gf(
            'django.db.models.fields.DateTimeField')(default=None, null=
            True), keep_default=False)
        db.add_column(u'questions_answer', 'marked_as_spam_by', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'answers_marked_as_spam', null=True, to=orm['auth.User']),
            keep_default=False)
        db.add_column(u'questions_question', 'is_spam', self.gf(
            'django.db.models.fields.BooleanField')(default=False),
            keep_default=False)
        db.add_column(u'questions_question', 'marked_as_spam', self.gf(
            'django.db.models.fields.DateTimeField')(default=None, null=
            True), keep_default=False)
        db.add_column(u'questions_question', 'marked_as_spam_by', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'questions_marked_as_spam', null=True, to=orm['auth.User']),
            keep_default=False)

    def backwards(self, orm):
        db.delete_column(u'questions_answer', 'is_spam')
        db.delete_column(u'questions_answer', 'marked_as_spam')
        db.delete_column(u'questions_answer', 'marked_as_spam_by_id')
        db.delete_column(u'questions_question', 'is_spam')
        db.delete_column(u'questions_question', 'marked_as_spam')
        db.delete_column(u'questions_question', 'marked_as_spam_by_id')
    models = {u'auth.group': {'Meta': {'object_name': 'Group'}, u'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':
        u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}
        )}, u'auth.permission': {'Meta': {'ordering':
        "(u'content_type__app_label', u'content_type__model', u'codename')",
        'unique_together': "((u'content_type', u'codename'),)",
        'object_name': 'Permission'}, 'codename': (
        'django.db.models.fields.CharField', [], {'max_length': '100'}),
        'content_type': ('django.db.models.fields.related.ForeignKey', [],
        {'to': u"orm['contenttypes.ContentType']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '50'})}, u'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', [], {
        'symmetrical': 'False', 'related_name': "u'user_set'", 'blank':
        'True', 'to': u"orm['auth.Group']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'is_active': ('django.db.models.fields.BooleanField', [], {
        'default': 'True'}), 'is_staff': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'}),
        'is_superuser': ('django.db.models.fields.BooleanField', [], {
        'default': 'False'}), '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', [], {
        'symmetrical': 'False', 'related_name': "u'user_set'", 'blank':
        'True', 'to': u"orm['auth.Permission']"}), 'username': (
        'django.db.models.fields.CharField', [], {'unique': 'True',
        'max_length': '30'})}, u'contenttypes.contenttype': {'Meta': {
        'ordering': "('name',)", 'unique_together':
        "(('app_label', 'model'),)", 'object_name': 'ContentType',
        'db_table': "'django_content_type'"}, 'app_label': (
        'django.db.models.fields.CharField', [], {'max_length': '100'}),
        u'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'})}, u'products.platform': {'Meta': {
        'object_name': 'Platform'}, 'display_order': (
        'django.db.models.fields.IntegerField', [], {}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '255'}), 'slug': ('django.db.models.fields.SlugField', [], {
        'max_length': '50'}), 'visible': (
        'django.db.models.fields.BooleanField', [], {})},
        u'products.product': {'Meta': {'ordering': "['display_order']",
        'object_name': 'Product'}, 'description': (
        'django.db.models.fields.TextField', [], {}), 'display_order': (
        'django.db.models.fields.IntegerField', [], {}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'image': ('django.db.models.fields.files.ImageField', [], {
        'max_length': '250', 'null': 'True', 'blank': 'True'}),
        'image_cachebuster': ('django.db.models.fields.CharField', [], {
        'default': 'None', 'max_length': '32', 'null': 'True'}),
        'image_offset': ('django.db.models.fields.IntegerField', [], {
        'default': 'None', 'null': 'True'}), 'platforms': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['products.Platform']", 'symmetrical': 'False'}),
        'questions_enabled': ('django.db.models.fields.BooleanField', [], {
        'default': 'False'}), 'slug': ('django.db.models.fields.SlugField',
        [], {'max_length': '50'}), 'sprite_height': (
        'django.db.models.fields.IntegerField', [], {'default': 'None',
        'null': 'True'}), 'title': ('django.db.models.fields.CharField', [],
        {'max_length': '255', 'db_index': 'True'}), 'visible': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'})},
        u'products.topic': {'Meta': {'ordering':
        "['product', 'display_order']", 'unique_together':
        "(('slug', 'product'),)", 'object_name': 'Topic'}, 'description': (
        'django.db.models.fields.TextField', [], {}), 'display_order': (
        'django.db.models.fields.IntegerField', [], {}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'image': ('django.db.models.fields.files.ImageField', [], {
        'max_length': '250', 'null': 'True', 'blank': 'True'}), 'parent': (
        'django.db.models.fields.related.ForeignKey', [], {'blank': 'True',
        'related_name': "'subtopics'", 'null': 'True', 'to':
        u"orm['products.Topic']"}), 'product': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'topics'", 'to': u"orm['products.Product']"}), 'slug': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'db_index': 'True'}), 'title': ('django.db.models.fields.CharField',
        [], {'max_length': '255', 'db_index': 'True'}), 'visible': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'})},
        u'questions.answer': {'Meta': {'ordering': "['created']",
        'object_name': 'Answer'}, 'content': (
        'django.db.models.fields.TextField', [], {}), 'created': (
        'django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'creator': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'answers'", 'to': u"orm['auth.User']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'is_spam': ('django.db.models.fields.BooleanField', [], {'default':
        'False'}), 'marked_as_spam': (
        'django.db.models.fields.DateTimeField', [], {'default': 'None',
        'null': 'True'}), 'marked_as_spam_by': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'answers_marked_as_spam'", 'null': 'True', 'to':
        u"orm['auth.User']"}), 'page': (
        'django.db.models.fields.IntegerField', [], {'default': '1'}),
        'question': ('django.db.models.fields.related.ForeignKey', [], {
        'related_name': "'answers'", 'to': u"orm['questions.Question']"}),
        'updated': ('django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'updated_by': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'answers_updated'", 'null': 'True', 'to': u"orm['auth.User']"})},
        u'questions.answervote': {'Meta': {'object_name': 'AnswerVote'},
        'anonymous_id': ('django.db.models.fields.CharField', [], {
        'max_length': '40', 'db_index': 'True'}), 'answer': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'votes'", 'to': u"orm['questions.Answer']"}), 'created': (
        'django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'creator': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'answer_votes'", 'null': 'True', 'to': u"orm['auth.User']"}),
        'helpful': ('django.db.models.fields.BooleanField', [], {'default':
        'False'}), u'id': ('django.db.models.fields.AutoField', [], {
        'primary_key': 'True'})}, u'questions.question': {'Meta': {
        'ordering': "['-updated']", 'object_name': 'Question'}, 'content':
        ('django.db.models.fields.TextField', [], {}), 'created': (
        'django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'creator': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'questions'", 'to': u"orm['auth.User']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'is_archived': ('django.db.models.fields.NullBooleanField', [], {
        'default': 'False', 'null': 'True', 'blank': 'True'}), 'is_locked':
        ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
        'is_spam': ('django.db.models.fields.BooleanField', [], {'default':
        'False'}), 'last_answer': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'last_reply_in'", 'null': 'True', 'to': u"orm['questions.Answer']"
        }), 'locale': ('kitsune.sumo.models.LocaleField', [], {'default':
        "'en-US'", 'max_length': '7'}), 'marked_as_spam': (
        'django.db.models.fields.DateTimeField', [], {'default': 'None',
        'null': 'True'}), 'marked_as_spam_by': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'questions_marked_as_spam'", 'null': 'True', 'to':
        u"orm['auth.User']"}), 'num_answers': (
        'django.db.models.fields.IntegerField', [], {'default': '0',
        'db_index': 'True'}), 'num_votes_past_week': (
        'django.db.models.fields.PositiveIntegerField', [], {'default': '0',
        'db_index': 'True'}), 'products': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['products.Product']", 'symmetrical': 'False'}), 'solution': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'solution_for'", 'null': 'True', 'to': u"orm['questions.Answer']"}
        ), 'title': ('django.db.models.fields.CharField', [], {'max_length':
        '255'}), 'topics': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['products.Topic']", 'symmetrical': 'False'}), 'updated': (
        'django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'updated_by': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'questions_updated'", 'null': 'True', 'to': u"orm['auth.User']"})},
        u'questions.questionmetadata': {'Meta': {'unique_together':
        "(('question', 'name'),)", 'object_name': 'QuestionMetaData'},
        u'id': ('django.db.models.fields.AutoField', [], {'primary_key':
        'True'}), 'name': ('django.db.models.fields.SlugField', [], {
        'max_length': '50'}), 'question': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'metadata_set'", 'to': u"orm['questions.Question']"}), 'value': (
        'django.db.models.fields.TextField', [], {})},
        u'questions.questionvisits': {'Meta': {'object_name':
        'QuestionVisits'}, u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'question': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['questions.Question']", 'unique': 'True'}), 'visits': (
        'django.db.models.fields.IntegerField', [], {'db_index': 'True'})},
        u'questions.questionvote': {'Meta': {'object_name': 'QuestionVote'},
        'anonymous_id': ('django.db.models.fields.CharField', [], {
        'max_length': '40', 'db_index': 'True'}), 'created': (
        'django.db.models.fields.DateTimeField', [], {'default':
        'datetime.datetime.now', 'db_index': 'True'}), 'creator': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'question_votes'", 'null': 'True', 'to': u"orm['auth.User']"}),
        u'id': ('django.db.models.fields.AutoField', [], {'primary_key':
        'True'}), 'question': ('django.db.models.fields.related.ForeignKey',
        [], {'related_name': "'votes'", 'to': u"orm['questions.Question']"}
        )}, u'questions.votemetadata': {'Meta': {'object_name':
        'VoteMetadata'}, 'content_type': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'
        }), u'id': ('django.db.models.fields.AutoField', [], {'primary_key':
        'True'}), 'key': ('django.db.models.fields.CharField', [], {
        'max_length': '40', 'db_index': 'True'}), 'object_id': (
        'django.db.models.fields.PositiveIntegerField', [], {'null': 'True',
        'blank': 'True'}), 'value': ('django.db.models.fields.CharField', [
        ], {'max_length': '1000'})}}
    complete_apps = ['questions']

# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding field 'Answer.is_spam'
        db.add_column(u'questions_answer', 'is_spam',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False)

        # Adding field 'Answer.marked_as_spam'
        db.add_column(u'questions_answer', 'marked_as_spam',
                      self.gf('django.db.models.fields.DateTimeField')(default=None, null=True),
                      keep_default=False)

        # Adding field 'Answer.marked_as_spam_by'
        db.add_column(u'questions_answer', 'marked_as_spam_by',
                      self.gf('django.db.models.fields.related.ForeignKey')(related_name='answers_marked_as_spam', null=True, to=orm['auth.User']),
                      keep_default=False)

        # Adding field 'Question.is_spam'
        db.add_column(u'questions_question', 'is_spam',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False)

        # Adding field 'Question.marked_as_spam'
        db.add_column(u'questions_question', 'marked_as_spam',
                      self.gf('django.db.models.fields.DateTimeField')(default=None, null=True),
                      keep_default=False)

        # Adding field 'Question.marked_as_spam_by'
        db.add_column(u'questions_question', 'marked_as_spam_by',
                      self.gf('django.db.models.fields.related.ForeignKey')(related_name='questions_marked_as_spam', null=True, to=orm['auth.User']),
                      keep_default=False)


    def backwards(self, orm):
        # Deleting field 'Answer.is_spam'
        db.delete_column(u'questions_answer', 'is_spam')

        # Deleting field 'Answer.marked_as_spam'
        db.delete_column(u'questions_answer', 'marked_as_spam')

        # Deleting field 'Answer.marked_as_spam_by'
        db.delete_column(u'questions_answer', 'marked_as_spam_by_id')

        # Deleting field 'Question.is_spam'
        db.delete_column(u'questions_question', 'is_spam')

        # Deleting field 'Question.marked_as_spam'
        db.delete_column(u'questions_question', 'marked_as_spam')

        # Deleting field 'Question.marked_as_spam_by'
        db.delete_column(u'questions_question', 'marked_as_spam_by_id')


    models = {
        u'auth.group': {
            'Meta': {'object_name': 'Group'},
            u'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': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
        },
        u'auth.permission': {
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        u'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', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            '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', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
        },
        u'contenttypes.contenttype': {
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            u'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'})
        },
        u'products.platform': {
            'Meta': {'object_name': 'Platform'},
            'display_order': ('django.db.models.fields.IntegerField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
            'visible': ('django.db.models.fields.BooleanField', [], {})
        },
        u'products.product': {
            'Meta': {'ordering': "['display_order']", 'object_name': 'Product'},
            'description': ('django.db.models.fields.TextField', [], {}),
            'display_order': ('django.db.models.fields.IntegerField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '250', 'null': 'True', 'blank': 'True'}),
            'image_cachebuster': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '32', 'null': 'True'}),
            'image_offset': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'}),
            'platforms': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['products.Platform']", 'symmetrical': 'False'}),
            'questions_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
            'sprite_height': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
            'visible': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
        },
        u'products.topic': {
            'Meta': {'ordering': "['product', 'display_order']", 'unique_together': "(('slug', 'product'),)", 'object_name': 'Topic'},
            'description': ('django.db.models.fields.TextField', [], {}),
            'display_order': ('django.db.models.fields.IntegerField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '250', 'null': 'True', 'blank': 'True'}),
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'subtopics'", 'null': 'True', 'to': u"orm['products.Topic']"}),
            'product': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'topics'", 'to': u"orm['products.Product']"}),
            'slug': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
            'visible': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
        },
        u'questions.answer': {
            'Meta': {'ordering': "['created']", 'object_name': 'Answer'},
            'content': ('django.db.models.fields.TextField', [], {}),
            'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': u"orm['auth.User']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'marked_as_spam': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
            'marked_as_spam_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers_marked_as_spam'", 'null': 'True', 'to': u"orm['auth.User']"}),
            'page': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
            'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': u"orm['questions.Question']"}),
            'updated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'updated_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers_updated'", 'null': 'True', 'to': u"orm['auth.User']"})
        },
        u'questions.answervote': {
            'Meta': {'object_name': 'AnswerVote'},
            'anonymous_id': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_index': 'True'}),
            'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': u"orm['questions.Answer']"}),
            'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answer_votes'", 'null': 'True', 'to': u"orm['auth.User']"}),
            'helpful': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        u'questions.question': {
            'Meta': {'ordering': "['-updated']", 'object_name': 'Question'},
            'content': ('django.db.models.fields.TextField', [], {}),
            'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': u"orm['auth.User']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_archived': ('django.db.models.fields.NullBooleanField', [], {'default': 'False', 'null': 'True', 'blank': 'True'}),
            'is_locked': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_spam': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'last_answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_reply_in'", 'null': 'True', 'to': u"orm['questions.Answer']"}),
            'locale': ('kitsune.sumo.models.LocaleField', [], {'default': "'en-US'", 'max_length': '7'}),
            'marked_as_spam': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
            'marked_as_spam_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions_marked_as_spam'", 'null': 'True', 'to': u"orm['auth.User']"}),
            'num_answers': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'}),
            'num_votes_past_week': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
            'products': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['products.Product']", 'symmetrical': 'False'}),
            'solution': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'solution_for'", 'null': 'True', 'to': u"orm['questions.Answer']"}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'topics': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['products.Topic']", 'symmetrical': 'False'}),
            'updated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'updated_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions_updated'", 'null': 'True', 'to': u"orm['auth.User']"})
        },
        u'questions.questionmetadata': {
            'Meta': {'unique_together': "(('question', 'name'),)", 'object_name': 'QuestionMetaData'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
            'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'metadata_set'", 'to': u"orm['questions.Question']"}),
            'value': ('django.db.models.fields.TextField', [], {})
        },
        u'questions.questionvisits': {
            'Meta': {'object_name': 'QuestionVisits'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'question': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['questions.Question']", 'unique': 'True'}),
            'visits': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'})
        },
        u'questions.questionvote': {
            'Meta': {'object_name': 'QuestionVote'},
            'anonymous_id': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_index': 'True'}),
            'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'db_index': 'True'}),
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'question_votes'", 'null': 'True', 'to': u"orm['auth.User']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': u"orm['questions.Question']"})
        },
        u'questions.votemetadata': {
            'Meta': {'object_name': 'VoteMetadata'},
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_index': 'True'}),
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'value': ('django.db.models.fields.CharField', [], {'max_length': '1000'})
        }
    }

    complete_apps = ['questions']