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


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'AmazonPaymentsSession'
        db.create_table(u'amazon_payments_amazonpaymentssession', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('billing_agreement_id', self.gf('django.db.models.fields.TextField')()),
            ('basket', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['basket.Basket'], unique=True, null=True, blank=True)),
            ('order', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['order.Order'], unique=True, null=True, blank=True)),
            ('order_reference_id', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('access_token', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
        ))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsSession'])

        # Adding model 'AmazonPaymentsTransaction'
        db.create_table(u'amazon_payments_amazonpaymentstransaction', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('session', self.gf('django.db.models.fields.related.ForeignKey')(related_name='transactions', to=orm['amazon_payments.AmazonPaymentsSession'])),
            ('request', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('response', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
        ))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsTransaction'])

        # Adding model 'AmazonPaymentsAuthAttempt'
        db.create_table(u'amazon_payments_amazonpaymentsauthattempt', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('session', self.gf('django.db.models.fields.related.ForeignKey')(related_name='auth_attempts', to=orm['amazon_payments.AmazonPaymentsSession'])),
            ('authorization_id', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('transaction', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['amazon_payments.AmazonPaymentsTransaction'], unique=True, null=True, blank=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
        ))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsAuthAttempt'])


    def backwards(self, orm):
        # Deleting model 'AmazonPaymentsSession'
        db.delete_table(u'amazon_payments_amazonpaymentssession')

        # Deleting model 'AmazonPaymentsTransaction'
        db.delete_table(u'amazon_payments_amazonpaymentstransaction')

        # Deleting model 'AmazonPaymentsAuthAttempt'
        db.delete_table(u'amazon_payments_amazonpaymentsauthattempt')


    models = {
        u'address.country': {
            'Meta': {'ordering': "('-display_order', 'name')", 'object_name': 'Country'},
            'display_order': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0', 'db_index': 'True'}),
            'is_shipping_country': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
            'iso_3166_1_a2': ('django.db.models.fields.CharField', [], {'max_length': '2', 'primary_key': 'True'}),
            'iso_3166_1_a3': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '3', 'blank': 'True'}),
            'iso_3166_1_numeric': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'db_index': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'printable_name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
        },
        u'amazon_payments.amazonpaymentsauthattempt': {
            'Meta': {'object_name': 'AmazonPaymentsAuthAttempt'},
            'authorization_id': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'session': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_attempts'", 'to': u"orm['amazon_payments.AmazonPaymentsSession']"}),
            'transaction': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['amazon_payments.AmazonPaymentsTransaction']", 'unique': 'True', 'null': 'True', 'blank': 'True'})
        },
        u'amazon_payments.amazonpaymentssession': {
            'Meta': {'object_name': 'AmazonPaymentsSession'},
            'access_token': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'basket': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['basket.Basket']", 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'billing_agreement_id': ('django.db.models.fields.TextField', [], {}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'order': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['order.Order']", 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'order_reference_id': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
        },
        u'amazon_payments.amazonpaymentstransaction': {
            'Meta': {'object_name': 'AmazonPaymentsTransaction'},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'request': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'response': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'session': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'transactions'", 'to': u"orm['amazon_payments.AmazonPaymentsSession']"})
        },
        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'basket.basket': {
            'Meta': {'object_name': 'Basket'},
            'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'date_merged': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'date_submitted': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'baskets'", 'null': 'True', 'to': u"orm['auth.User']"}),
            'status': ('django.db.models.fields.CharField', [], {'default': "'Open'", 'max_length': '128'}),
            'vouchers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['voucher.Voucher']", 'null': 'True', 'blank': 'True'})
        },
        u'catalogue.attributeentity': {
            'Meta': {'object_name': 'AttributeEntity'},
            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': '255', 'blank': 'True'}),
            'type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'entities'", 'to': u"orm['catalogue.AttributeEntityType']"})
        },
        u'catalogue.attributeentitytype': {
            'Meta': {'object_name': 'AttributeEntityType'},
            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': '255', 'blank': 'True'})
        },
        u'catalogue.attributeoption': {
            'Meta': {'object_name': 'AttributeOption'},
            'group': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'options'", 'to': u"orm['catalogue.AttributeOptionGroup']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'option': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        u'catalogue.attributeoptiongroup': {
            'Meta': {'object_name': 'AttributeOptionGroup'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
        },
        u'catalogue.category': {
            'Meta': {'ordering': "['full_name']", 'object_name': 'Category'},
            'depth': ('django.db.models.fields.PositiveIntegerField', [], {}),
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'full_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
            'numchild': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'path': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255'})
        },
        u'catalogue.option': {
            'Meta': {'object_name': 'Option'},
            'code': ('oscar.models.fields.autoslugfield.AutoSlugField', [], {'allow_duplicates': 'False', 'max_length': '128', 'separator': "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from': "'name'", 'overwrite': 'False'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'type': ('django.db.models.fields.CharField', [], {'default': "'Required'", 'max_length': '128'})
        },
        u'catalogue.product': {
            'Meta': {'ordering': "['-date_created']", 'object_name': 'Product'},
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['catalogue.ProductAttribute']", 'through': u"orm['catalogue.ProductAttributeValue']", 'symmetrical': 'False'}),
            'categories': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['catalogue.Category']", 'through': u"orm['catalogue.ProductCategory']", 'symmetrical': 'False'}),
            'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'date_updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_discountable': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'variants'", 'null': 'True', 'to': u"orm['catalogue.Product']"}),
            'product_class': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'products'", 'null': 'True', 'on_delete': 'models.PROTECT', 'to': u"orm['catalogue.ProductClass']"}),
            'product_options': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'}),
            'rating': ('django.db.models.fields.FloatField', [], {'null': 'True'}),
            'recommended_products': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['catalogue.Product']", 'symmetrical': 'False', 'through': u"orm['catalogue.ProductRecommendation']", 'blank': 'True'}),
            'related_products': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'relations'", 'blank': 'True', 'to': u"orm['catalogue.Product']"}),
            'score': ('django.db.models.fields.FloatField', [], {'default': '0.0', 'db_index': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'upc': ('oscar.models.fields.NullCharField', [], {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'})
        },
        u'catalogue.productattribute': {
            'Meta': {'ordering': "['code']", 'object_name': 'ProductAttribute'},
            'code': ('django.db.models.fields.SlugField', [], {'max_length': '128'}),
            'entity_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.AttributeEntityType']", 'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'option_group': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.AttributeOptionGroup']", 'null': 'True', 'blank': 'True'}),
            'product_class': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes'", 'null': 'True', 'to': u"orm['catalogue.ProductClass']"}),
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'type': ('django.db.models.fields.CharField', [], {'default': "'text'", 'max_length': '20'})
        },
        u'catalogue.productattributevalue': {
            'Meta': {'object_name': 'ProductAttributeValue'},
            'attribute': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.ProductAttribute']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'product': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_values'", 'to': u"orm['catalogue.Product']"}),
            'value_boolean': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
            'value_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
            'value_entity': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.AttributeEntity']", 'null': 'True', 'blank': 'True'}),
            'value_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'value_float': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
            'value_image': ('django.db.models.fields.files.ImageField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'value_integer': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
            'value_option': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.AttributeOption']", 'null': 'True', 'blank': 'True'}),
            'value_richtext': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'value_text': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
        },
        u'catalogue.productcategory': {
            'Meta': {'ordering': "['product', 'category']", 'object_name': 'ProductCategory'},
            'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Category']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'product': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Product']"})
        },
        u'catalogue.productclass': {
            'Meta': {'ordering': "['name']", 'object_name': 'ProductClass'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'options': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'}),
            'requires_shipping': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'slug': ('oscar.models.fields.autoslugfield.AutoSlugField', [], {'allow_duplicates': 'False', 'max_length': '128', 'separator': "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from': "'name'", 'overwrite': 'False'}),
            'track_stock': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
        },
        u'catalogue.productrecommendation': {
            'Meta': {'object_name': 'ProductRecommendation'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'primary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'primary_recommendations'", 'to': u"orm['catalogue.Product']"}),
            'ranking': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
            'recommendation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Product']"})
        },
        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'offer.benefit': {
            'Meta': {'object_name': 'Benefit'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'max_affected_items': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'proxy_class': ('oscar.models.fields.NullCharField', [], {'default': 'None', 'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'range': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['offer.Range']", 'null': 'True', 'blank': 'True'}),
            'type': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
            'value': ('oscar.models.fields.PositiveDecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'})
        },
        u'offer.condition': {
            'Meta': {'object_name': 'Condition'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'proxy_class': ('oscar.models.fields.NullCharField', [], {'default': 'None', 'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'range': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['offer.Range']", 'null': 'True', 'blank': 'True'}),
            'type': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
            'value': ('oscar.models.fields.PositiveDecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'})
        },
        u'offer.conditionaloffer': {
            'Meta': {'ordering': "['-priority']", 'object_name': 'ConditionalOffer'},
            'benefit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['offer.Benefit']"}),
            'condition': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['offer.Condition']"}),
            'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'max_basket_applications': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'max_discount': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
            'max_global_applications': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'max_user_applications': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
            'num_applications': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'num_orders': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'offer_type': ('django.db.models.fields.CharField', [], {'default': "'Site'", 'max_length': '128'}),
            'priority': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'redirect_url': ('oscar.models.fields.ExtendedURLField', [], {'max_length': '200', 'blank': 'True'}),
            'slug': ('oscar.models.fields.autoslugfield.AutoSlugField', [], {'allow_duplicates': 'False', 'max_length': '128', 'separator': "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from': "'name'", 'overwrite': 'False'}),
            'start_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'status': ('django.db.models.fields.CharField', [], {'default': "'Open'", 'max_length': '64'}),
            'total_discount': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '12', 'decimal_places': '2'})
        },
        u'offer.range': {
            'Meta': {'object_name': 'Range'},
            'classes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'classes'", 'blank': 'True', 'to': u"orm['catalogue.ProductClass']"}),
            'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'excluded_products': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'excludes'", 'blank': 'True', 'to': u"orm['catalogue.Product']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'included_categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'includes'", 'blank': 'True', 'to': u"orm['catalogue.Category']"}),
            'included_products': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'includes'", 'blank': 'True', 'through': u"orm['offer.RangeProduct']", 'to': u"orm['catalogue.Product']"}),
            'includes_all_products': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_public': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
            'proxy_class': ('oscar.models.fields.NullCharField', [], {'default': 'None', 'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '128', 'unique': 'True', 'null': 'True'})
        },
        u'offer.rangeproduct': {
            'Meta': {'unique_together': "(('range', 'product'),)", 'object_name': 'RangeProduct'},
            'display_order': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'product': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Product']"}),
            'range': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['offer.Range']"})
        },
        u'order.billingaddress': {
            'Meta': {'object_name': 'BillingAddress'},
            'country': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['address.Country']"}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line1': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'line2': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line3': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line4': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'postcode': ('oscar.models.fields.UppercaseCharField', [], {'max_length': '64', 'blank': 'True'}),
            'search_text': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
            'state': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'})
        },
        u'order.order': {
            'Meta': {'ordering': "['-date_placed']", 'object_name': 'Order'},
            'basket': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['basket.Basket']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
            'billing_address': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['order.BillingAddress']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
            'currency': ('django.db.models.fields.CharField', [], {'default': "'GBP'", 'max_length': '12'}),
            'date_placed': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
            'guest_email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'number': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
            'shipping_address': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['order.ShippingAddress']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
            'shipping_code': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '128', 'blank': 'True'}),
            'shipping_excl_tax': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
            'shipping_incl_tax': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
            'shipping_method': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
            'site': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['sites.Site']", 'null': 'True', 'on_delete': 'models.SET_NULL'}),
            'status': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
            'total_excl_tax': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '2'}),
            'total_incl_tax': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '2'}),
            'user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'orders'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"})
        },
        u'order.shippingaddress': {
            'Meta': {'object_name': 'ShippingAddress'},
            'country': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['address.Country']"}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line1': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'line2': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line3': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line4': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'notes': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'phone_number': ('oscar.models.fields.PhoneNumberField', [], {'max_length': '128', 'blank': 'True'}),
            'postcode': ('oscar.models.fields.UppercaseCharField', [], {'max_length': '64', 'blank': 'True'}),
            'search_text': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
            'state': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'})
        },
        u'sites.site': {
            'Meta': {'ordering': "(u'domain',)", 'object_name': 'Site', 'db_table': "u'django_site'"},
            'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        u'voucher.voucher': {
            'Meta': {'object_name': 'Voucher'},
            'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'db_index': 'True'}),
            'date_created': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'num_basket_additions': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'num_orders': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'offers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'vouchers'", 'symmetrical': 'False', 'to': u"orm['offer.ConditionalOffer']"}),
            'start_datetime': ('django.db.models.fields.DateTimeField', [], {}),
            'total_discount': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '12', 'decimal_places': '2'}),
            'usage': ('django.db.models.fields.CharField', [], {'default': "'Multi-use'", 'max_length': '128'})
        }
    }

    complete_apps = ['amazon_payments']
9f9d49b6259892a4539bec7595d52eb47f154ba8
<mask token>


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.create_table(u'amazon_payments_amazonpaymentssession', ((u'id',
            self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('billing_agreement_id', self.gf(
            'django.db.models.fields.TextField')()), ('basket', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'basket.Basket'], unique=True, null=True, blank=True)), (
            'order', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'order.Order'], unique=True, null=True, blank=True)), (
            'order_reference_id', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'access_token', self.gf('django.db.models.fields.TextField')(
            null=True, blank=True)), ('created_at', self.gf(
            'django.db.models.fields.DateTimeField')(auto_now_add=True,
            blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsSession'])
        db.create_table(u'amazon_payments_amazonpaymentstransaction', ((
            u'id', self.gf('django.db.models.fields.AutoField')(primary_key
            =True)), ('session', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'transactions', to=orm['amazon_payments.AmazonPaymentsSession']
            )), ('request', self.gf('django.db.models.fields.TextField')(
            null=True, blank=True)), ('response', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'created_at', self.gf('django.db.models.fields.DateTimeField')(
            auto_now_add=True, blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsTransaction']
            )
        db.create_table(u'amazon_payments_amazonpaymentsauthattempt', ((
            u'id', self.gf('django.db.models.fields.AutoField')(primary_key
            =True)), ('session', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'auth_attempts', to=orm['amazon_payments.AmazonPaymentsSession'
            ])), ('authorization_id', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'transaction', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'amazon_payments.AmazonPaymentsTransaction'], unique=True, null
            =True, blank=True)), ('created_at', self.gf(
            'django.db.models.fields.DateTimeField')(auto_now_add=True,
            blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsAuthAttempt']
            )
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.create_table(u'amazon_payments_amazonpaymentssession', ((u'id',
            self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('billing_agreement_id', self.gf(
            'django.db.models.fields.TextField')()), ('basket', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'basket.Basket'], unique=True, null=True, blank=True)), (
            'order', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'order.Order'], unique=True, null=True, blank=True)), (
            'order_reference_id', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'access_token', self.gf('django.db.models.fields.TextField')(
            null=True, blank=True)), ('created_at', self.gf(
            'django.db.models.fields.DateTimeField')(auto_now_add=True,
            blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsSession'])
        db.create_table(u'amazon_payments_amazonpaymentstransaction', ((
            u'id', self.gf('django.db.models.fields.AutoField')(primary_key
            =True)), ('session', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'transactions', to=orm['amazon_payments.AmazonPaymentsSession']
            )), ('request', self.gf('django.db.models.fields.TextField')(
            null=True, blank=True)), ('response', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'created_at', self.gf('django.db.models.fields.DateTimeField')(
            auto_now_add=True, blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsTransaction']
            )
        db.create_table(u'amazon_payments_amazonpaymentsauthattempt', ((
            u'id', self.gf('django.db.models.fields.AutoField')(primary_key
            =True)), ('session', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'auth_attempts', to=orm['amazon_payments.AmazonPaymentsSession'
            ])), ('authorization_id', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'transaction', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'amazon_payments.AmazonPaymentsTransaction'], unique=True, null
            =True, blank=True)), ('created_at', self.gf(
            'django.db.models.fields.DateTimeField')(auto_now_add=True,
            blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsAuthAttempt']
            )

    def backwards(self, orm):
        db.delete_table(u'amazon_payments_amazonpaymentssession')
        db.delete_table(u'amazon_payments_amazonpaymentstransaction')
        db.delete_table(u'amazon_payments_amazonpaymentsauthattempt')
    <mask token>
    <mask token>

<mask token>


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.create_table(u'amazon_payments_amazonpaymentssession', ((u'id',
            self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('billing_agreement_id', self.gf(
            'django.db.models.fields.TextField')()), ('basket', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'basket.Basket'], unique=True, null=True, blank=True)), (
            'order', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'order.Order'], unique=True, null=True, blank=True)), (
            'order_reference_id', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'access_token', self.gf('django.db.models.fields.TextField')(
            null=True, blank=True)), ('created_at', self.gf(
            'django.db.models.fields.DateTimeField')(auto_now_add=True,
            blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsSession'])
        db.create_table(u'amazon_payments_amazonpaymentstransaction', ((
            u'id', self.gf('django.db.models.fields.AutoField')(primary_key
            =True)), ('session', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'transactions', to=orm['amazon_payments.AmazonPaymentsSession']
            )), ('request', self.gf('django.db.models.fields.TextField')(
            null=True, blank=True)), ('response', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'created_at', self.gf('django.db.models.fields.DateTimeField')(
            auto_now_add=True, blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsTransaction']
            )
        db.create_table(u'amazon_payments_amazonpaymentsauthattempt', ((
            u'id', self.gf('django.db.models.fields.AutoField')(primary_key
            =True)), ('session', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'auth_attempts', to=orm['amazon_payments.AmazonPaymentsSession'
            ])), ('authorization_id', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'transaction', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'amazon_payments.AmazonPaymentsTransaction'], unique=True, null
            =True, blank=True)), ('created_at', self.gf(
            'django.db.models.fields.DateTimeField')(auto_now_add=True,
            blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsAuthAttempt']
            )

    def backwards(self, orm):
        db.delete_table(u'amazon_payments_amazonpaymentssession')
        db.delete_table(u'amazon_payments_amazonpaymentstransaction')
        db.delete_table(u'amazon_payments_amazonpaymentsauthattempt')
    models = {u'address.country': {'Meta': {'ordering':
        "('-display_order', 'name')", 'object_name': 'Country'},
        'display_order': (
        'django.db.models.fields.PositiveSmallIntegerField', [], {'default':
        '0', 'db_index': 'True'}), 'is_shipping_country': (
        'django.db.models.fields.BooleanField', [], {'default': 'False',
        'db_index': 'True'}), 'iso_3166_1_a2': (
        'django.db.models.fields.CharField', [], {'max_length': '2',
        'primary_key': 'True'}), 'iso_3166_1_a3': (
        'django.db.models.fields.CharField', [], {'db_index': 'True',
        'max_length': '3', 'blank': 'True'}), 'iso_3166_1_numeric': (
        'django.db.models.fields.PositiveSmallIntegerField', [], {'null':
        'True', 'db_index': 'True'}), 'name': (
        'django.db.models.fields.CharField', [], {'max_length': '128'}),
        'printable_name': ('django.db.models.fields.CharField', [], {
        'max_length': '128'})},
        u'amazon_payments.amazonpaymentsauthattempt': {'Meta': {
        'object_name': 'AmazonPaymentsAuthAttempt'}, 'authorization_id': (
        'django.db.models.fields.TextField', [], {'null': 'True', 'blank':
        'True'}), 'created_at': ('django.db.models.fields.DateTimeField', [
        ], {'auto_now_add': 'True', 'blank': 'True'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'session': ('django.db.models.fields.related.ForeignKey', [], {
        'related_name': "'auth_attempts'", 'to':
        u"orm['amazon_payments.AmazonPaymentsSession']"}), 'transaction': (
        'django.db.models.fields.related.OneToOneField', [], {'to':
        u"orm['amazon_payments.AmazonPaymentsTransaction']", 'unique':
        'True', 'null': 'True', 'blank': 'True'})},
        u'amazon_payments.amazonpaymentssession': {'Meta': {'object_name':
        'AmazonPaymentsSession'}, 'access_token': (
        'django.db.models.fields.TextField', [], {'null': 'True', 'blank':
        'True'}), 'basket': (
        'django.db.models.fields.related.OneToOneField', [], {'to':
        u"orm['basket.Basket']", 'unique': 'True', 'null': 'True', 'blank':
        'True'}), 'billing_agreement_id': (
        'django.db.models.fields.TextField', [], {}), 'created_at': (
        'django.db.models.fields.DateTimeField', [], {'auto_now_add':
        'True', 'blank': 'True'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'order': ('django.db.models.fields.related.OneToOneField', [], {
        'to': u"orm['order.Order']", 'unique': 'True', 'null': 'True',
        'blank': 'True'}), 'order_reference_id': (
        'django.db.models.fields.TextField', [], {'null': 'True', 'blank':
        'True'})}, u'amazon_payments.amazonpaymentstransaction': {'Meta': {
        'object_name': 'AmazonPaymentsTransaction'}, 'created_at': (
        'django.db.models.fields.DateTimeField', [], {'auto_now_add':
        'True', 'blank': 'True'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'request': ('django.db.models.fields.TextField', [], {'null':
        'True', 'blank': 'True'}), 'response': (
        'django.db.models.fields.TextField', [], {'null': 'True', 'blank':
        'True'}), 'session': ('django.db.models.fields.related.ForeignKey',
        [], {'related_name': "'transactions'", 'to':
        u"orm['amazon_payments.AmazonPaymentsSession']"})}, 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'basket.basket': {'Meta': {'object_name':
        'Basket'}, 'date_created': ('django.db.models.fields.DateTimeField',
        [], {'auto_now_add': 'True', 'blank': 'True'}), 'date_merged': (
        'django.db.models.fields.DateTimeField', [], {'null': 'True',
        'blank': 'True'}), 'date_submitted': (
        'django.db.models.fields.DateTimeField', [], {'null': 'True',
        'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'owner': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'baskets'", 'null': 'True', 'to': u"orm['auth.User']"}), 'status':
        ('django.db.models.fields.CharField', [], {'default': "'Open'",
        'max_length': '128'}), 'vouchers': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'to': u"orm['voucher.Voucher']", 'null':
        'True', 'blank': 'True'})}, u'catalogue.attributeentity': {'Meta':
        {'object_name': 'AttributeEntity'}, 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': '255', 'blank': 'True'}), 'type': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'entities'", 'to': u"orm['catalogue.AttributeEntityType']"})},
        u'catalogue.attributeentitytype': {'Meta': {'object_name':
        'AttributeEntityType'}, 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':
        '255', 'blank': 'True'})}, u'catalogue.attributeoption': {'Meta': {
        'object_name': 'AttributeOption'}, 'group': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'options'", 'to': u"orm['catalogue.AttributeOptionGroup']"}),
        u'id': ('django.db.models.fields.AutoField', [], {'primary_key':
        'True'}), 'option': ('django.db.models.fields.CharField', [], {
        'max_length': '255'})}, u'catalogue.attributeoptiongroup': {'Meta':
        {'object_name': 'AttributeOptionGroup'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '128'})}, u'catalogue.category': {'Meta': {'ordering':
        "['full_name']", 'object_name': 'Category'}, 'depth': (
        'django.db.models.fields.PositiveIntegerField', [], {}),
        'description': ('django.db.models.fields.TextField', [], {'blank':
        'True'}), 'full_name': ('django.db.models.fields.CharField', [], {
        'max_length': '255', 'db_index': 'True'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'image': ('django.db.models.fields.files.ImageField', [], {
        'max_length': '255', 'null': 'True', 'blank': 'True'}), 'name': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'db_index': 'True'}), 'numchild': (
        'django.db.models.fields.PositiveIntegerField', [], {'default': '0'
        }), 'path': ('django.db.models.fields.CharField', [], {'unique':
        'True', 'max_length': '255'}), 'slug': (
        'django.db.models.fields.SlugField', [], {'max_length': '255'})},
        u'catalogue.option': {'Meta': {'object_name': 'Option'}, 'code': (
        'oscar.models.fields.autoslugfield.AutoSlugField', [], {
        'allow_duplicates': 'False', 'max_length': '128', 'separator':
        "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from':
        "'name'", 'overwrite': 'False'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '128'}), 'type': ('django.db.models.fields.CharField', [], {
        'default': "'Required'", 'max_length': '128'})},
        u'catalogue.product': {'Meta': {'ordering': "['-date_created']",
        'object_name': 'Product'}, 'attributes': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['catalogue.ProductAttribute']", 'through':
        u"orm['catalogue.ProductAttributeValue']", 'symmetrical': 'False'}),
        'categories': ('django.db.models.fields.related.ManyToManyField', [
        ], {'to': u"orm['catalogue.Category']", 'through':
        u"orm['catalogue.ProductCategory']", 'symmetrical': 'False'}),
        'date_created': ('django.db.models.fields.DateTimeField', [], {
        'auto_now_add': 'True', 'blank': 'True'}), 'date_updated': (
        'django.db.models.fields.DateTimeField', [], {'auto_now': 'True',
        'db_index': 'True', 'blank': 'True'}), 'description': (
        'django.db.models.fields.TextField', [], {'blank': 'True'}), u'id':
        ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'is_discountable': ('django.db.models.fields.BooleanField', [], {
        'default': 'True'}), 'parent': (
        'django.db.models.fields.related.ForeignKey', [], {'blank': 'True',
        'related_name': "'variants'", 'null': 'True', 'to':
        u"orm['catalogue.Product']"}), 'product_class': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'products'", 'null': 'True', 'on_delete': 'models.PROTECT', 'to':
        u"orm['catalogue.ProductClass']"}), 'product_options': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'
        }), 'rating': ('django.db.models.fields.FloatField', [], {'null':
        'True'}), 'recommended_products': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['catalogue.Product']", 'symmetrical': 'False', 'through':
        u"orm['catalogue.ProductRecommendation']", 'blank': 'True'}),
        'related_products': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'relations'", 'blank':
        'True', 'to': u"orm['catalogue.Product']"}), 'score': (
        'django.db.models.fields.FloatField', [], {'default': '0.0',
        'db_index': 'True'}), 'slug': ('django.db.models.fields.SlugField',
        [], {'max_length': '255'}), 'title': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'upc': ('oscar.models.fields.NullCharField', [],
        {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank':
        'True'})}, u'catalogue.productattribute': {'Meta': {'ordering':
        "['code']", 'object_name': 'ProductAttribute'}, 'code': (
        'django.db.models.fields.SlugField', [], {'max_length': '128'}),
        'entity_type': ('django.db.models.fields.related.ForeignKey', [], {
        'to': u"orm['catalogue.AttributeEntityType']", 'null': 'True',
        'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'name': (
        'django.db.models.fields.CharField', [], {'max_length': '128'}),
        'option_group': ('django.db.models.fields.related.ForeignKey', [],
        {'to': u"orm['catalogue.AttributeOptionGroup']", 'null': 'True',
        'blank': 'True'}), 'product_class': (
        'django.db.models.fields.related.ForeignKey', [], {'blank': 'True',
        'related_name': "'attributes'", 'null': 'True', 'to':
        u"orm['catalogue.ProductClass']"}), 'required': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'}),
        'type': ('django.db.models.fields.CharField', [], {'default':
        "'text'", 'max_length': '20'})}, u'catalogue.productattributevalue':
        {'Meta': {'object_name': 'ProductAttributeValue'}, 'attribute': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.ProductAttribute']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'product': ('django.db.models.fields.related.ForeignKey', [], {
        'related_name': "'attribute_values'", 'to':
        u"orm['catalogue.Product']"}), 'value_boolean': (
        'django.db.models.fields.NullBooleanField', [], {'null': 'True',
        'blank': 'True'}), 'value_date': (
        'django.db.models.fields.DateField', [], {'null': 'True', 'blank':
        'True'}), 'value_entity': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.AttributeEntity']", 'null': 'True', 'blank':
        'True'}), 'value_file': ('django.db.models.fields.files.FileField',
        [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
        'value_float': ('django.db.models.fields.FloatField', [], {'null':
        'True', 'blank': 'True'}), 'value_image': (
        'django.db.models.fields.files.ImageField', [], {'max_length':
        '255', 'null': 'True', 'blank': 'True'}), 'value_integer': (
        'django.db.models.fields.IntegerField', [], {'null': 'True',
        'blank': 'True'}), 'value_option': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.AttributeOption']", 'null': 'True', 'blank':
        'True'}), 'value_richtext': ('django.db.models.fields.TextField', [
        ], {'null': 'True', 'blank': 'True'}), 'value_text': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'null': 'True', 'blank': 'True'})}, u'catalogue.productcategory': {
        'Meta': {'ordering': "['product', 'category']", 'object_name':
        'ProductCategory'}, 'category': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.Category']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'product': ('django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.Product']"})}, u'catalogue.productclass': {'Meta':
        {'ordering': "['name']", 'object_name': 'ProductClass'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '128'}), 'options': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'
        }), 'requires_shipping': ('django.db.models.fields.BooleanField', [
        ], {'default': 'True'}), 'slug': (
        'oscar.models.fields.autoslugfield.AutoSlugField', [], {
        'allow_duplicates': 'False', 'max_length': '128', 'separator':
        "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from':
        "'name'", 'overwrite': 'False'}), 'track_stock': (
        'django.db.models.fields.BooleanField', [], {'default': 'True'})},
        u'catalogue.productrecommendation': {'Meta': {'object_name':
        'ProductRecommendation'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'primary': ('django.db.models.fields.related.ForeignKey', [], {
        'related_name': "'primary_recommendations'", 'to':
        u"orm['catalogue.Product']"}), 'ranking': (
        'django.db.models.fields.PositiveSmallIntegerField', [], {'default':
        '0'}), 'recommendation': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.Product']"})}, 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'offer.benefit': {'Meta': {
        'object_name': 'Benefit'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'max_affected_items': (
        'django.db.models.fields.PositiveIntegerField', [], {'null': 'True',
        'blank': 'True'}), 'proxy_class': (
        'oscar.models.fields.NullCharField', [], {'default': 'None',
        'max_length': '255', 'unique': 'True', 'null': 'True', 'blank':
        'True'}), 'range': ('django.db.models.fields.related.ForeignKey', [
        ], {'to': u"orm['offer.Range']", 'null': 'True', 'blank': 'True'}),
        'type': ('django.db.models.fields.CharField', [], {'max_length':
        '128', 'blank': 'True'}), 'value': (
        'oscar.models.fields.PositiveDecimalField', [], {'null': 'True',
        'max_digits': '12', 'decimal_places': '2', 'blank': 'True'})},
        u'offer.condition': {'Meta': {'object_name': 'Condition'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'proxy_class': ('oscar.models.fields.NullCharField', [], {'default':
        'None', 'max_length': '255', 'unique': 'True', 'null': 'True',
        'blank': 'True'}), 'range': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['offer.Range']", 'null': 'True', 'blank': 'True'}), 'type': (
        'django.db.models.fields.CharField', [], {'max_length': '128',
        'blank': 'True'}), 'value': (
        'oscar.models.fields.PositiveDecimalField', [], {'null': 'True',
        'max_digits': '12', 'decimal_places': '2', 'blank': 'True'})},
        u'offer.conditionaloffer': {'Meta': {'ordering': "['-priority']",
        'object_name': 'ConditionalOffer'}, 'benefit': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['offer.Benefit']"}), 'condition': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['offer.Condition']"}), 'date_created': (
        'django.db.models.fields.DateTimeField', [], {'auto_now_add':
        'True', 'blank': 'True'}), 'description': (
        'django.db.models.fields.TextField', [], {'blank': 'True'}),
        'end_datetime': ('django.db.models.fields.DateTimeField', [], {
        'null': 'True', 'blank': 'True'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'max_basket_applications': (
        'django.db.models.fields.PositiveIntegerField', [], {'null': 'True',
        'blank': 'True'}), 'max_discount': (
        'django.db.models.fields.DecimalField', [], {'null': 'True',
        'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
        'max_global_applications': (
        'django.db.models.fields.PositiveIntegerField', [], {'null': 'True',
        'blank': 'True'}), 'max_user_applications': (
        'django.db.models.fields.PositiveIntegerField', [], {'null': 'True',
        'blank': 'True'}), 'name': ('django.db.models.fields.CharField', [],
        {'unique': 'True', 'max_length': '128'}), 'num_applications': (
        'django.db.models.fields.PositiveIntegerField', [], {'default': '0'
        }), 'num_orders': ('django.db.models.fields.PositiveIntegerField',
        [], {'default': '0'}), 'offer_type': (
        'django.db.models.fields.CharField', [], {'default': "'Site'",
        'max_length': '128'}), 'priority': (
        'django.db.models.fields.IntegerField', [], {'default': '0'}),
        'redirect_url': ('oscar.models.fields.ExtendedURLField', [], {
        'max_length': '200', 'blank': 'True'}), 'slug': (
        'oscar.models.fields.autoslugfield.AutoSlugField', [], {
        'allow_duplicates': 'False', 'max_length': '128', 'separator':
        "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from':
        "'name'", 'overwrite': 'False'}), 'start_datetime': (
        'django.db.models.fields.DateTimeField', [], {'null': 'True',
        'blank': 'True'}), 'status': ('django.db.models.fields.CharField',
        [], {'default': "'Open'", 'max_length': '64'}), 'total_discount': (
        'django.db.models.fields.DecimalField', [], {'default': "'0.00'",
        'max_digits': '12', 'decimal_places': '2'})}, u'offer.range': {
        'Meta': {'object_name': 'Range'}, 'classes': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'classes'", 'blank':
        'True', 'to': u"orm['catalogue.ProductClass']"}), 'date_created': (
        'django.db.models.fields.DateTimeField', [], {'auto_now_add':
        'True', 'blank': 'True'}), 'description': (
        'django.db.models.fields.TextField', [], {'blank': 'True'}),
        'excluded_products': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'excludes'", 'blank':
        'True', 'to': u"orm['catalogue.Product']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'included_categories': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'includes'", 'blank':
        'True', 'to': u"orm['catalogue.Category']"}), 'included_products':
        ('django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'includes'", 'blank':
        'True', 'through': u"orm['offer.RangeProduct']", 'to':
        u"orm['catalogue.Product']"}), 'includes_all_products': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'}),
        'is_public': ('django.db.models.fields.BooleanField', [], {
        'default': 'False'}), 'name': ('django.db.models.fields.CharField',
        [], {'unique': 'True', 'max_length': '128'}), 'proxy_class': (
        'oscar.models.fields.NullCharField', [], {'default': 'None',
        'max_length': '255', 'unique': 'True', 'null': 'True', 'blank':
        'True'}), 'slug': ('django.db.models.fields.SlugField', [], {
        'max_length': '128', 'unique': 'True', 'null': 'True'})},
        u'offer.rangeproduct': {'Meta': {'unique_together':
        "(('range', 'product'),)", 'object_name': 'RangeProduct'},
        'display_order': ('django.db.models.fields.IntegerField', [], {
        'default': '0'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'product': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.Product']"}), 'range': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['offer.Range']"})}, u'order.billingaddress': {'Meta': {
        'object_name': 'BillingAddress'}, 'country': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['address.Country']"}), 'first_name': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'last_name': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'line1': ('django.db.models.fields.CharField', [
        ], {'max_length': '255'}), 'line2': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'line3': ('django.db.models.fields.CharField', [
        ], {'max_length': '255', 'blank': 'True'}), 'line4': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'postcode': (
        'oscar.models.fields.UppercaseCharField', [], {'max_length': '64',
        'blank': 'True'}), 'search_text': (
        'django.db.models.fields.CharField', [], {'max_length': '1000'}),
        'state': ('django.db.models.fields.CharField', [], {'max_length':
        '255', 'blank': 'True'}), 'title': (
        'django.db.models.fields.CharField', [], {'max_length': '64',
        'blank': 'True'})}, u'order.order': {'Meta': {'ordering':
        "['-date_placed']", 'object_name': 'Order'}, 'basket': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['basket.Basket']", 'null': 'True', 'on_delete':
        'models.SET_NULL', 'blank': 'True'}), 'billing_address': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['order.BillingAddress']", 'null': 'True', 'on_delete':
        'models.SET_NULL', 'blank': 'True'}), 'currency': (
        'django.db.models.fields.CharField', [], {'default': "'GBP'",
        'max_length': '12'}), 'date_placed': (
        'django.db.models.fields.DateTimeField', [], {'auto_now_add':
        'True', 'db_index': 'True', 'blank': 'True'}), 'guest_email': (
        'django.db.models.fields.EmailField', [], {'max_length': '75',
        'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'number': (
        'django.db.models.fields.CharField', [], {'max_length': '128',
        'db_index': 'True'}), 'shipping_address': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['order.ShippingAddress']", 'null': 'True', 'on_delete':
        'models.SET_NULL', 'blank': 'True'}), 'shipping_code': (
        'django.db.models.fields.CharField', [], {'default': "''",
        'max_length': '128', 'blank': 'True'}), 'shipping_excl_tax': (
        'django.db.models.fields.DecimalField', [], {'default': '0',
        'max_digits': '12', 'decimal_places': '2'}), 'shipping_incl_tax': (
        'django.db.models.fields.DecimalField', [], {'default': '0',
        'max_digits': '12', 'decimal_places': '2'}), 'shipping_method': (
        'django.db.models.fields.CharField', [], {'max_length': '128',
        'blank': 'True'}), 'site': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['sites.Site']", 'null': 'True', 'on_delete':
        'models.SET_NULL'}), 'status': ('django.db.models.fields.CharField',
        [], {'max_length': '100', 'blank': 'True'}), 'total_excl_tax': (
        'django.db.models.fields.DecimalField', [], {'max_digits': '12',
        'decimal_places': '2'}), 'total_incl_tax': (
        'django.db.models.fields.DecimalField', [], {'max_digits': '12',
        'decimal_places': '2'}), 'user': (
        'django.db.models.fields.related.ForeignKey', [], {'blank': 'True',
        'related_name': "'orders'", 'null': 'True', 'on_delete':
        'models.SET_NULL', 'to': u"orm['auth.User']"})},
        u'order.shippingaddress': {'Meta': {'object_name':
        'ShippingAddress'}, 'country': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['address.Country']"}), 'first_name': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'last_name': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'line1': ('django.db.models.fields.CharField', [
        ], {'max_length': '255'}), 'line2': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'line3': ('django.db.models.fields.CharField', [
        ], {'max_length': '255', 'blank': 'True'}), 'line4': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'notes': ('django.db.models.fields.TextField', [
        ], {'blank': 'True'}), 'phone_number': (
        'oscar.models.fields.PhoneNumberField', [], {'max_length': '128',
        'blank': 'True'}), 'postcode': (
        'oscar.models.fields.UppercaseCharField', [], {'max_length': '64',
        'blank': 'True'}), 'search_text': (
        'django.db.models.fields.CharField', [], {'max_length': '1000'}),
        'state': ('django.db.models.fields.CharField', [], {'max_length':
        '255', 'blank': 'True'}), 'title': (
        'django.db.models.fields.CharField', [], {'max_length': '64',
        'blank': 'True'})}, u'sites.site': {'Meta': {'ordering':
        "(u'domain',)", 'object_name': 'Site', 'db_table': "u'django_site'"
        }, 'domain': ('django.db.models.fields.CharField', [], {
        'max_length': '100'}), u'id': ('django.db.models.fields.AutoField',
        [], {'primary_key': 'True'}), 'name': (
        'django.db.models.fields.CharField', [], {'max_length': '50'})},
        u'voucher.voucher': {'Meta': {'object_name': 'Voucher'}, 'code': (
        'django.db.models.fields.CharField', [], {'unique': 'True',
        'max_length': '128', 'db_index': 'True'}), 'date_created': (
        'django.db.models.fields.DateField', [], {'auto_now_add': 'True',
        'blank': 'True'}), 'end_datetime': (
        'django.db.models.fields.DateTimeField', [], {}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '128'}), 'num_basket_additions': (
        'django.db.models.fields.PositiveIntegerField', [], {'default': '0'
        }), 'num_orders': ('django.db.models.fields.PositiveIntegerField',
        [], {'default': '0'}), 'offers': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'related_name': "'vouchers'", 'symmetrical': 'False', 'to':
        u"orm['offer.ConditionalOffer']"}), 'start_datetime': (
        'django.db.models.fields.DateTimeField', [], {}), 'total_discount':
        ('django.db.models.fields.DecimalField', [], {'default': "'0.00'",
        'max_digits': '12', 'decimal_places': '2'}), 'usage': (
        'django.db.models.fields.CharField', [], {'default': "'Multi-use'",
        'max_length': '128'})}}
    complete_apps = ['amazon_payments']

from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.create_table(u'amazon_payments_amazonpaymentssession', ((u'id',
            self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('billing_agreement_id', self.gf(
            'django.db.models.fields.TextField')()), ('basket', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'basket.Basket'], unique=True, null=True, blank=True)), (
            'order', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'order.Order'], unique=True, null=True, blank=True)), (
            'order_reference_id', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'access_token', self.gf('django.db.models.fields.TextField')(
            null=True, blank=True)), ('created_at', self.gf(
            'django.db.models.fields.DateTimeField')(auto_now_add=True,
            blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsSession'])
        db.create_table(u'amazon_payments_amazonpaymentstransaction', ((
            u'id', self.gf('django.db.models.fields.AutoField')(primary_key
            =True)), ('session', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'transactions', to=orm['amazon_payments.AmazonPaymentsSession']
            )), ('request', self.gf('django.db.models.fields.TextField')(
            null=True, blank=True)), ('response', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'created_at', self.gf('django.db.models.fields.DateTimeField')(
            auto_now_add=True, blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsTransaction']
            )
        db.create_table(u'amazon_payments_amazonpaymentsauthattempt', ((
            u'id', self.gf('django.db.models.fields.AutoField')(primary_key
            =True)), ('session', self.gf(
            'django.db.models.fields.related.ForeignKey')(related_name=
            'auth_attempts', to=orm['amazon_payments.AmazonPaymentsSession'
            ])), ('authorization_id', self.gf(
            'django.db.models.fields.TextField')(null=True, blank=True)), (
            'transaction', self.gf(
            'django.db.models.fields.related.OneToOneField')(to=orm[
            'amazon_payments.AmazonPaymentsTransaction'], unique=True, null
            =True, blank=True)), ('created_at', self.gf(
            'django.db.models.fields.DateTimeField')(auto_now_add=True,
            blank=True))))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsAuthAttempt']
            )

    def backwards(self, orm):
        db.delete_table(u'amazon_payments_amazonpaymentssession')
        db.delete_table(u'amazon_payments_amazonpaymentstransaction')
        db.delete_table(u'amazon_payments_amazonpaymentsauthattempt')
    models = {u'address.country': {'Meta': {'ordering':
        "('-display_order', 'name')", 'object_name': 'Country'},
        'display_order': (
        'django.db.models.fields.PositiveSmallIntegerField', [], {'default':
        '0', 'db_index': 'True'}), 'is_shipping_country': (
        'django.db.models.fields.BooleanField', [], {'default': 'False',
        'db_index': 'True'}), 'iso_3166_1_a2': (
        'django.db.models.fields.CharField', [], {'max_length': '2',
        'primary_key': 'True'}), 'iso_3166_1_a3': (
        'django.db.models.fields.CharField', [], {'db_index': 'True',
        'max_length': '3', 'blank': 'True'}), 'iso_3166_1_numeric': (
        'django.db.models.fields.PositiveSmallIntegerField', [], {'null':
        'True', 'db_index': 'True'}), 'name': (
        'django.db.models.fields.CharField', [], {'max_length': '128'}),
        'printable_name': ('django.db.models.fields.CharField', [], {
        'max_length': '128'})},
        u'amazon_payments.amazonpaymentsauthattempt': {'Meta': {
        'object_name': 'AmazonPaymentsAuthAttempt'}, 'authorization_id': (
        'django.db.models.fields.TextField', [], {'null': 'True', 'blank':
        'True'}), 'created_at': ('django.db.models.fields.DateTimeField', [
        ], {'auto_now_add': 'True', 'blank': 'True'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'session': ('django.db.models.fields.related.ForeignKey', [], {
        'related_name': "'auth_attempts'", 'to':
        u"orm['amazon_payments.AmazonPaymentsSession']"}), 'transaction': (
        'django.db.models.fields.related.OneToOneField', [], {'to':
        u"orm['amazon_payments.AmazonPaymentsTransaction']", 'unique':
        'True', 'null': 'True', 'blank': 'True'})},
        u'amazon_payments.amazonpaymentssession': {'Meta': {'object_name':
        'AmazonPaymentsSession'}, 'access_token': (
        'django.db.models.fields.TextField', [], {'null': 'True', 'blank':
        'True'}), 'basket': (
        'django.db.models.fields.related.OneToOneField', [], {'to':
        u"orm['basket.Basket']", 'unique': 'True', 'null': 'True', 'blank':
        'True'}), 'billing_agreement_id': (
        'django.db.models.fields.TextField', [], {}), 'created_at': (
        'django.db.models.fields.DateTimeField', [], {'auto_now_add':
        'True', 'blank': 'True'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'order': ('django.db.models.fields.related.OneToOneField', [], {
        'to': u"orm['order.Order']", 'unique': 'True', 'null': 'True',
        'blank': 'True'}), 'order_reference_id': (
        'django.db.models.fields.TextField', [], {'null': 'True', 'blank':
        'True'})}, u'amazon_payments.amazonpaymentstransaction': {'Meta': {
        'object_name': 'AmazonPaymentsTransaction'}, 'created_at': (
        'django.db.models.fields.DateTimeField', [], {'auto_now_add':
        'True', 'blank': 'True'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'request': ('django.db.models.fields.TextField', [], {'null':
        'True', 'blank': 'True'}), 'response': (
        'django.db.models.fields.TextField', [], {'null': 'True', 'blank':
        'True'}), 'session': ('django.db.models.fields.related.ForeignKey',
        [], {'related_name': "'transactions'", 'to':
        u"orm['amazon_payments.AmazonPaymentsSession']"})}, 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'basket.basket': {'Meta': {'object_name':
        'Basket'}, 'date_created': ('django.db.models.fields.DateTimeField',
        [], {'auto_now_add': 'True', 'blank': 'True'}), 'date_merged': (
        'django.db.models.fields.DateTimeField', [], {'null': 'True',
        'blank': 'True'}), 'date_submitted': (
        'django.db.models.fields.DateTimeField', [], {'null': 'True',
        'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'owner': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'baskets'", 'null': 'True', 'to': u"orm['auth.User']"}), 'status':
        ('django.db.models.fields.CharField', [], {'default': "'Open'",
        'max_length': '128'}), 'vouchers': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'to': u"orm['voucher.Voucher']", 'null':
        'True', 'blank': 'True'})}, u'catalogue.attributeentity': {'Meta':
        {'object_name': 'AttributeEntity'}, 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': '255', 'blank': 'True'}), 'type': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'entities'", 'to': u"orm['catalogue.AttributeEntityType']"})},
        u'catalogue.attributeentitytype': {'Meta': {'object_name':
        'AttributeEntityType'}, 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':
        '255', 'blank': 'True'})}, u'catalogue.attributeoption': {'Meta': {
        'object_name': 'AttributeOption'}, 'group': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'options'", 'to': u"orm['catalogue.AttributeOptionGroup']"}),
        u'id': ('django.db.models.fields.AutoField', [], {'primary_key':
        'True'}), 'option': ('django.db.models.fields.CharField', [], {
        'max_length': '255'})}, u'catalogue.attributeoptiongroup': {'Meta':
        {'object_name': 'AttributeOptionGroup'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '128'})}, u'catalogue.category': {'Meta': {'ordering':
        "['full_name']", 'object_name': 'Category'}, 'depth': (
        'django.db.models.fields.PositiveIntegerField', [], {}),
        'description': ('django.db.models.fields.TextField', [], {'blank':
        'True'}), 'full_name': ('django.db.models.fields.CharField', [], {
        'max_length': '255', 'db_index': 'True'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'image': ('django.db.models.fields.files.ImageField', [], {
        'max_length': '255', 'null': 'True', 'blank': 'True'}), 'name': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'db_index': 'True'}), 'numchild': (
        'django.db.models.fields.PositiveIntegerField', [], {'default': '0'
        }), 'path': ('django.db.models.fields.CharField', [], {'unique':
        'True', 'max_length': '255'}), 'slug': (
        'django.db.models.fields.SlugField', [], {'max_length': '255'})},
        u'catalogue.option': {'Meta': {'object_name': 'Option'}, 'code': (
        'oscar.models.fields.autoslugfield.AutoSlugField', [], {
        'allow_duplicates': 'False', 'max_length': '128', 'separator':
        "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from':
        "'name'", 'overwrite': 'False'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '128'}), 'type': ('django.db.models.fields.CharField', [], {
        'default': "'Required'", 'max_length': '128'})},
        u'catalogue.product': {'Meta': {'ordering': "['-date_created']",
        'object_name': 'Product'}, 'attributes': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['catalogue.ProductAttribute']", 'through':
        u"orm['catalogue.ProductAttributeValue']", 'symmetrical': 'False'}),
        'categories': ('django.db.models.fields.related.ManyToManyField', [
        ], {'to': u"orm['catalogue.Category']", 'through':
        u"orm['catalogue.ProductCategory']", 'symmetrical': 'False'}),
        'date_created': ('django.db.models.fields.DateTimeField', [], {
        'auto_now_add': 'True', 'blank': 'True'}), 'date_updated': (
        'django.db.models.fields.DateTimeField', [], {'auto_now': 'True',
        'db_index': 'True', 'blank': 'True'}), 'description': (
        'django.db.models.fields.TextField', [], {'blank': 'True'}), u'id':
        ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'is_discountable': ('django.db.models.fields.BooleanField', [], {
        'default': 'True'}), 'parent': (
        'django.db.models.fields.related.ForeignKey', [], {'blank': 'True',
        'related_name': "'variants'", 'null': 'True', 'to':
        u"orm['catalogue.Product']"}), 'product_class': (
        'django.db.models.fields.related.ForeignKey', [], {'related_name':
        "'products'", 'null': 'True', 'on_delete': 'models.PROTECT', 'to':
        u"orm['catalogue.ProductClass']"}), 'product_options': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'
        }), 'rating': ('django.db.models.fields.FloatField', [], {'null':
        'True'}), 'recommended_products': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['catalogue.Product']", 'symmetrical': 'False', 'through':
        u"orm['catalogue.ProductRecommendation']", 'blank': 'True'}),
        'related_products': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'relations'", 'blank':
        'True', 'to': u"orm['catalogue.Product']"}), 'score': (
        'django.db.models.fields.FloatField', [], {'default': '0.0',
        'db_index': 'True'}), 'slug': ('django.db.models.fields.SlugField',
        [], {'max_length': '255'}), 'title': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'upc': ('oscar.models.fields.NullCharField', [],
        {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank':
        'True'})}, u'catalogue.productattribute': {'Meta': {'ordering':
        "['code']", 'object_name': 'ProductAttribute'}, 'code': (
        'django.db.models.fields.SlugField', [], {'max_length': '128'}),
        'entity_type': ('django.db.models.fields.related.ForeignKey', [], {
        'to': u"orm['catalogue.AttributeEntityType']", 'null': 'True',
        'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'name': (
        'django.db.models.fields.CharField', [], {'max_length': '128'}),
        'option_group': ('django.db.models.fields.related.ForeignKey', [],
        {'to': u"orm['catalogue.AttributeOptionGroup']", 'null': 'True',
        'blank': 'True'}), 'product_class': (
        'django.db.models.fields.related.ForeignKey', [], {'blank': 'True',
        'related_name': "'attributes'", 'null': 'True', 'to':
        u"orm['catalogue.ProductClass']"}), 'required': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'}),
        'type': ('django.db.models.fields.CharField', [], {'default':
        "'text'", 'max_length': '20'})}, u'catalogue.productattributevalue':
        {'Meta': {'object_name': 'ProductAttributeValue'}, 'attribute': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.ProductAttribute']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'product': ('django.db.models.fields.related.ForeignKey', [], {
        'related_name': "'attribute_values'", 'to':
        u"orm['catalogue.Product']"}), 'value_boolean': (
        'django.db.models.fields.NullBooleanField', [], {'null': 'True',
        'blank': 'True'}), 'value_date': (
        'django.db.models.fields.DateField', [], {'null': 'True', 'blank':
        'True'}), 'value_entity': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.AttributeEntity']", 'null': 'True', 'blank':
        'True'}), 'value_file': ('django.db.models.fields.files.FileField',
        [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
        'value_float': ('django.db.models.fields.FloatField', [], {'null':
        'True', 'blank': 'True'}), 'value_image': (
        'django.db.models.fields.files.ImageField', [], {'max_length':
        '255', 'null': 'True', 'blank': 'True'}), 'value_integer': (
        'django.db.models.fields.IntegerField', [], {'null': 'True',
        'blank': 'True'}), 'value_option': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.AttributeOption']", 'null': 'True', 'blank':
        'True'}), 'value_richtext': ('django.db.models.fields.TextField', [
        ], {'null': 'True', 'blank': 'True'}), 'value_text': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'null': 'True', 'blank': 'True'})}, u'catalogue.productcategory': {
        'Meta': {'ordering': "['product', 'category']", 'object_name':
        'ProductCategory'}, 'category': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.Category']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'product': ('django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.Product']"})}, u'catalogue.productclass': {'Meta':
        {'ordering': "['name']", 'object_name': 'ProductClass'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '128'}), 'options': (
        'django.db.models.fields.related.ManyToManyField', [], {'to':
        u"orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'
        }), 'requires_shipping': ('django.db.models.fields.BooleanField', [
        ], {'default': 'True'}), 'slug': (
        'oscar.models.fields.autoslugfield.AutoSlugField', [], {
        'allow_duplicates': 'False', 'max_length': '128', 'separator':
        "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from':
        "'name'", 'overwrite': 'False'}), 'track_stock': (
        'django.db.models.fields.BooleanField', [], {'default': 'True'})},
        u'catalogue.productrecommendation': {'Meta': {'object_name':
        'ProductRecommendation'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'primary': ('django.db.models.fields.related.ForeignKey', [], {
        'related_name': "'primary_recommendations'", 'to':
        u"orm['catalogue.Product']"}), 'ranking': (
        'django.db.models.fields.PositiveSmallIntegerField', [], {'default':
        '0'}), 'recommendation': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.Product']"})}, 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'offer.benefit': {'Meta': {
        'object_name': 'Benefit'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'max_affected_items': (
        'django.db.models.fields.PositiveIntegerField', [], {'null': 'True',
        'blank': 'True'}), 'proxy_class': (
        'oscar.models.fields.NullCharField', [], {'default': 'None',
        'max_length': '255', 'unique': 'True', 'null': 'True', 'blank':
        'True'}), 'range': ('django.db.models.fields.related.ForeignKey', [
        ], {'to': u"orm['offer.Range']", 'null': 'True', 'blank': 'True'}),
        'type': ('django.db.models.fields.CharField', [], {'max_length':
        '128', 'blank': 'True'}), 'value': (
        'oscar.models.fields.PositiveDecimalField', [], {'null': 'True',
        'max_digits': '12', 'decimal_places': '2', 'blank': 'True'})},
        u'offer.condition': {'Meta': {'object_name': 'Condition'}, u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'proxy_class': ('oscar.models.fields.NullCharField', [], {'default':
        'None', 'max_length': '255', 'unique': 'True', 'null': 'True',
        'blank': 'True'}), 'range': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['offer.Range']", 'null': 'True', 'blank': 'True'}), 'type': (
        'django.db.models.fields.CharField', [], {'max_length': '128',
        'blank': 'True'}), 'value': (
        'oscar.models.fields.PositiveDecimalField', [], {'null': 'True',
        'max_digits': '12', 'decimal_places': '2', 'blank': 'True'})},
        u'offer.conditionaloffer': {'Meta': {'ordering': "['-priority']",
        'object_name': 'ConditionalOffer'}, 'benefit': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['offer.Benefit']"}), 'condition': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['offer.Condition']"}), 'date_created': (
        'django.db.models.fields.DateTimeField', [], {'auto_now_add':
        'True', 'blank': 'True'}), 'description': (
        'django.db.models.fields.TextField', [], {'blank': 'True'}),
        'end_datetime': ('django.db.models.fields.DateTimeField', [], {
        'null': 'True', 'blank': 'True'}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'max_basket_applications': (
        'django.db.models.fields.PositiveIntegerField', [], {'null': 'True',
        'blank': 'True'}), 'max_discount': (
        'django.db.models.fields.DecimalField', [], {'null': 'True',
        'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
        'max_global_applications': (
        'django.db.models.fields.PositiveIntegerField', [], {'null': 'True',
        'blank': 'True'}), 'max_user_applications': (
        'django.db.models.fields.PositiveIntegerField', [], {'null': 'True',
        'blank': 'True'}), 'name': ('django.db.models.fields.CharField', [],
        {'unique': 'True', 'max_length': '128'}), 'num_applications': (
        'django.db.models.fields.PositiveIntegerField', [], {'default': '0'
        }), 'num_orders': ('django.db.models.fields.PositiveIntegerField',
        [], {'default': '0'}), 'offer_type': (
        'django.db.models.fields.CharField', [], {'default': "'Site'",
        'max_length': '128'}), 'priority': (
        'django.db.models.fields.IntegerField', [], {'default': '0'}),
        'redirect_url': ('oscar.models.fields.ExtendedURLField', [], {
        'max_length': '200', 'blank': 'True'}), 'slug': (
        'oscar.models.fields.autoslugfield.AutoSlugField', [], {
        'allow_duplicates': 'False', 'max_length': '128', 'separator':
        "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from':
        "'name'", 'overwrite': 'False'}), 'start_datetime': (
        'django.db.models.fields.DateTimeField', [], {'null': 'True',
        'blank': 'True'}), 'status': ('django.db.models.fields.CharField',
        [], {'default': "'Open'", 'max_length': '64'}), 'total_discount': (
        'django.db.models.fields.DecimalField', [], {'default': "'0.00'",
        'max_digits': '12', 'decimal_places': '2'})}, u'offer.range': {
        'Meta': {'object_name': 'Range'}, 'classes': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'classes'", 'blank':
        'True', 'to': u"orm['catalogue.ProductClass']"}), 'date_created': (
        'django.db.models.fields.DateTimeField', [], {'auto_now_add':
        'True', 'blank': 'True'}), 'description': (
        'django.db.models.fields.TextField', [], {'blank': 'True'}),
        'excluded_products': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'excludes'", 'blank':
        'True', 'to': u"orm['catalogue.Product']"}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'included_categories': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'includes'", 'blank':
        'True', 'to': u"orm['catalogue.Category']"}), 'included_products':
        ('django.db.models.fields.related.ManyToManyField', [], {
        'symmetrical': 'False', 'related_name': "'includes'", 'blank':
        'True', 'through': u"orm['offer.RangeProduct']", 'to':
        u"orm['catalogue.Product']"}), 'includes_all_products': (
        'django.db.models.fields.BooleanField', [], {'default': 'False'}),
        'is_public': ('django.db.models.fields.BooleanField', [], {
        'default': 'False'}), 'name': ('django.db.models.fields.CharField',
        [], {'unique': 'True', 'max_length': '128'}), 'proxy_class': (
        'oscar.models.fields.NullCharField', [], {'default': 'None',
        'max_length': '255', 'unique': 'True', 'null': 'True', 'blank':
        'True'}), 'slug': ('django.db.models.fields.SlugField', [], {
        'max_length': '128', 'unique': 'True', 'null': 'True'})},
        u'offer.rangeproduct': {'Meta': {'unique_together':
        "(('range', 'product'),)", 'object_name': 'RangeProduct'},
        'display_order': ('django.db.models.fields.IntegerField', [], {
        'default': '0'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'product': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['catalogue.Product']"}), 'range': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['offer.Range']"})}, u'order.billingaddress': {'Meta': {
        'object_name': 'BillingAddress'}, 'country': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['address.Country']"}), 'first_name': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'last_name': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'line1': ('django.db.models.fields.CharField', [
        ], {'max_length': '255'}), 'line2': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'line3': ('django.db.models.fields.CharField', [
        ], {'max_length': '255', 'blank': 'True'}), 'line4': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'postcode': (
        'oscar.models.fields.UppercaseCharField', [], {'max_length': '64',
        'blank': 'True'}), 'search_text': (
        'django.db.models.fields.CharField', [], {'max_length': '1000'}),
        'state': ('django.db.models.fields.CharField', [], {'max_length':
        '255', 'blank': 'True'}), 'title': (
        'django.db.models.fields.CharField', [], {'max_length': '64',
        'blank': 'True'})}, u'order.order': {'Meta': {'ordering':
        "['-date_placed']", 'object_name': 'Order'}, 'basket': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['basket.Basket']", 'null': 'True', 'on_delete':
        'models.SET_NULL', 'blank': 'True'}), 'billing_address': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['order.BillingAddress']", 'null': 'True', 'on_delete':
        'models.SET_NULL', 'blank': 'True'}), 'currency': (
        'django.db.models.fields.CharField', [], {'default': "'GBP'",
        'max_length': '12'}), 'date_placed': (
        'django.db.models.fields.DateTimeField', [], {'auto_now_add':
        'True', 'db_index': 'True', 'blank': 'True'}), 'guest_email': (
        'django.db.models.fields.EmailField', [], {'max_length': '75',
        'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'number': (
        'django.db.models.fields.CharField', [], {'max_length': '128',
        'db_index': 'True'}), 'shipping_address': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['order.ShippingAddress']", 'null': 'True', 'on_delete':
        'models.SET_NULL', 'blank': 'True'}), 'shipping_code': (
        'django.db.models.fields.CharField', [], {'default': "''",
        'max_length': '128', 'blank': 'True'}), 'shipping_excl_tax': (
        'django.db.models.fields.DecimalField', [], {'default': '0',
        'max_digits': '12', 'decimal_places': '2'}), 'shipping_incl_tax': (
        'django.db.models.fields.DecimalField', [], {'default': '0',
        'max_digits': '12', 'decimal_places': '2'}), 'shipping_method': (
        'django.db.models.fields.CharField', [], {'max_length': '128',
        'blank': 'True'}), 'site': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['sites.Site']", 'null': 'True', 'on_delete':
        'models.SET_NULL'}), 'status': ('django.db.models.fields.CharField',
        [], {'max_length': '100', 'blank': 'True'}), 'total_excl_tax': (
        'django.db.models.fields.DecimalField', [], {'max_digits': '12',
        'decimal_places': '2'}), 'total_incl_tax': (
        'django.db.models.fields.DecimalField', [], {'max_digits': '12',
        'decimal_places': '2'}), 'user': (
        'django.db.models.fields.related.ForeignKey', [], {'blank': 'True',
        'related_name': "'orders'", 'null': 'True', 'on_delete':
        'models.SET_NULL', 'to': u"orm['auth.User']"})},
        u'order.shippingaddress': {'Meta': {'object_name':
        'ShippingAddress'}, 'country': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        u"orm['address.Country']"}), 'first_name': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [],
        {'primary_key': 'True'}), 'last_name': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'line1': ('django.db.models.fields.CharField', [
        ], {'max_length': '255'}), 'line2': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'line3': ('django.db.models.fields.CharField', [
        ], {'max_length': '255', 'blank': 'True'}), 'line4': (
        'django.db.models.fields.CharField', [], {'max_length': '255',
        'blank': 'True'}), 'notes': ('django.db.models.fields.TextField', [
        ], {'blank': 'True'}), 'phone_number': (
        'oscar.models.fields.PhoneNumberField', [], {'max_length': '128',
        'blank': 'True'}), 'postcode': (
        'oscar.models.fields.UppercaseCharField', [], {'max_length': '64',
        'blank': 'True'}), 'search_text': (
        'django.db.models.fields.CharField', [], {'max_length': '1000'}),
        'state': ('django.db.models.fields.CharField', [], {'max_length':
        '255', 'blank': 'True'}), 'title': (
        'django.db.models.fields.CharField', [], {'max_length': '64',
        'blank': 'True'})}, u'sites.site': {'Meta': {'ordering':
        "(u'domain',)", 'object_name': 'Site', 'db_table': "u'django_site'"
        }, 'domain': ('django.db.models.fields.CharField', [], {
        'max_length': '100'}), u'id': ('django.db.models.fields.AutoField',
        [], {'primary_key': 'True'}), 'name': (
        'django.db.models.fields.CharField', [], {'max_length': '50'})},
        u'voucher.voucher': {'Meta': {'object_name': 'Voucher'}, 'code': (
        'django.db.models.fields.CharField', [], {'unique': 'True',
        'max_length': '128', 'db_index': 'True'}), 'date_created': (
        'django.db.models.fields.DateField', [], {'auto_now_add': 'True',
        'blank': 'True'}), 'end_datetime': (
        'django.db.models.fields.DateTimeField', [], {}), u'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '128'}), 'num_basket_additions': (
        'django.db.models.fields.PositiveIntegerField', [], {'default': '0'
        }), 'num_orders': ('django.db.models.fields.PositiveIntegerField',
        [], {'default': '0'}), 'offers': (
        'django.db.models.fields.related.ManyToManyField', [], {
        'related_name': "'vouchers'", 'symmetrical': 'False', 'to':
        u"orm['offer.ConditionalOffer']"}), 'start_datetime': (
        'django.db.models.fields.DateTimeField', [], {}), 'total_discount':
        ('django.db.models.fields.DecimalField', [], {'default': "'0.00'",
        'max_digits': '12', 'decimal_places': '2'}), 'usage': (
        'django.db.models.fields.CharField', [], {'default': "'Multi-use'",
        'max_length': '128'})}}
    complete_apps = ['amazon_payments']

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


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'AmazonPaymentsSession'
        db.create_table(u'amazon_payments_amazonpaymentssession', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('billing_agreement_id', self.gf('django.db.models.fields.TextField')()),
            ('basket', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['basket.Basket'], unique=True, null=True, blank=True)),
            ('order', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['order.Order'], unique=True, null=True, blank=True)),
            ('order_reference_id', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('access_token', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
        ))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsSession'])

        # Adding model 'AmazonPaymentsTransaction'
        db.create_table(u'amazon_payments_amazonpaymentstransaction', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('session', self.gf('django.db.models.fields.related.ForeignKey')(related_name='transactions', to=orm['amazon_payments.AmazonPaymentsSession'])),
            ('request', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('response', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
        ))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsTransaction'])

        # Adding model 'AmazonPaymentsAuthAttempt'
        db.create_table(u'amazon_payments_amazonpaymentsauthattempt', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('session', self.gf('django.db.models.fields.related.ForeignKey')(related_name='auth_attempts', to=orm['amazon_payments.AmazonPaymentsSession'])),
            ('authorization_id', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('transaction', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['amazon_payments.AmazonPaymentsTransaction'], unique=True, null=True, blank=True)),
            ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
        ))
        db.send_create_signal(u'amazon_payments', ['AmazonPaymentsAuthAttempt'])


    def backwards(self, orm):
        # Deleting model 'AmazonPaymentsSession'
        db.delete_table(u'amazon_payments_amazonpaymentssession')

        # Deleting model 'AmazonPaymentsTransaction'
        db.delete_table(u'amazon_payments_amazonpaymentstransaction')

        # Deleting model 'AmazonPaymentsAuthAttempt'
        db.delete_table(u'amazon_payments_amazonpaymentsauthattempt')


    models = {
        u'address.country': {
            'Meta': {'ordering': "('-display_order', 'name')", 'object_name': 'Country'},
            'display_order': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0', 'db_index': 'True'}),
            'is_shipping_country': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
            'iso_3166_1_a2': ('django.db.models.fields.CharField', [], {'max_length': '2', 'primary_key': 'True'}),
            'iso_3166_1_a3': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '3', 'blank': 'True'}),
            'iso_3166_1_numeric': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'db_index': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'printable_name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
        },
        u'amazon_payments.amazonpaymentsauthattempt': {
            'Meta': {'object_name': 'AmazonPaymentsAuthAttempt'},
            'authorization_id': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'session': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_attempts'", 'to': u"orm['amazon_payments.AmazonPaymentsSession']"}),
            'transaction': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['amazon_payments.AmazonPaymentsTransaction']", 'unique': 'True', 'null': 'True', 'blank': 'True'})
        },
        u'amazon_payments.amazonpaymentssession': {
            'Meta': {'object_name': 'AmazonPaymentsSession'},
            'access_token': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'basket': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['basket.Basket']", 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'billing_agreement_id': ('django.db.models.fields.TextField', [], {}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'order': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['order.Order']", 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'order_reference_id': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
        },
        u'amazon_payments.amazonpaymentstransaction': {
            'Meta': {'object_name': 'AmazonPaymentsTransaction'},
            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'request': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'response': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'session': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'transactions'", 'to': u"orm['amazon_payments.AmazonPaymentsSession']"})
        },
        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'basket.basket': {
            'Meta': {'object_name': 'Basket'},
            'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'date_merged': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'date_submitted': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'baskets'", 'null': 'True', 'to': u"orm['auth.User']"}),
            'status': ('django.db.models.fields.CharField', [], {'default': "'Open'", 'max_length': '128'}),
            'vouchers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['voucher.Voucher']", 'null': 'True', 'blank': 'True'})
        },
        u'catalogue.attributeentity': {
            'Meta': {'object_name': 'AttributeEntity'},
            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': '255', 'blank': 'True'}),
            'type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'entities'", 'to': u"orm['catalogue.AttributeEntityType']"})
        },
        u'catalogue.attributeentitytype': {
            'Meta': {'object_name': 'AttributeEntityType'},
            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': '255', 'blank': 'True'})
        },
        u'catalogue.attributeoption': {
            'Meta': {'object_name': 'AttributeOption'},
            'group': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'options'", 'to': u"orm['catalogue.AttributeOptionGroup']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'option': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        u'catalogue.attributeoptiongroup': {
            'Meta': {'object_name': 'AttributeOptionGroup'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
        },
        u'catalogue.category': {
            'Meta': {'ordering': "['full_name']", 'object_name': 'Category'},
            'depth': ('django.db.models.fields.PositiveIntegerField', [], {}),
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'full_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
            'numchild': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'path': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255'})
        },
        u'catalogue.option': {
            'Meta': {'object_name': 'Option'},
            'code': ('oscar.models.fields.autoslugfield.AutoSlugField', [], {'allow_duplicates': 'False', 'max_length': '128', 'separator': "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from': "'name'", 'overwrite': 'False'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'type': ('django.db.models.fields.CharField', [], {'default': "'Required'", 'max_length': '128'})
        },
        u'catalogue.product': {
            'Meta': {'ordering': "['-date_created']", 'object_name': 'Product'},
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['catalogue.ProductAttribute']", 'through': u"orm['catalogue.ProductAttributeValue']", 'symmetrical': 'False'}),
            'categories': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['catalogue.Category']", 'through': u"orm['catalogue.ProductCategory']", 'symmetrical': 'False'}),
            'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'date_updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_discountable': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'variants'", 'null': 'True', 'to': u"orm['catalogue.Product']"}),
            'product_class': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'products'", 'null': 'True', 'on_delete': 'models.PROTECT', 'to': u"orm['catalogue.ProductClass']"}),
            'product_options': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'}),
            'rating': ('django.db.models.fields.FloatField', [], {'null': 'True'}),
            'recommended_products': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['catalogue.Product']", 'symmetrical': 'False', 'through': u"orm['catalogue.ProductRecommendation']", 'blank': 'True'}),
            'related_products': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'relations'", 'blank': 'True', 'to': u"orm['catalogue.Product']"}),
            'score': ('django.db.models.fields.FloatField', [], {'default': '0.0', 'db_index': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'upc': ('oscar.models.fields.NullCharField', [], {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'})
        },
        u'catalogue.productattribute': {
            'Meta': {'ordering': "['code']", 'object_name': 'ProductAttribute'},
            'code': ('django.db.models.fields.SlugField', [], {'max_length': '128'}),
            'entity_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.AttributeEntityType']", 'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'option_group': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.AttributeOptionGroup']", 'null': 'True', 'blank': 'True'}),
            'product_class': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes'", 'null': 'True', 'to': u"orm['catalogue.ProductClass']"}),
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'type': ('django.db.models.fields.CharField', [], {'default': "'text'", 'max_length': '20'})
        },
        u'catalogue.productattributevalue': {
            'Meta': {'object_name': 'ProductAttributeValue'},
            'attribute': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.ProductAttribute']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'product': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_values'", 'to': u"orm['catalogue.Product']"}),
            'value_boolean': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
            'value_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
            'value_entity': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.AttributeEntity']", 'null': 'True', 'blank': 'True'}),
            'value_file': ('django.db.models.fields.files.FileField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'value_float': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
            'value_image': ('django.db.models.fields.files.ImageField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'value_integer': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
            'value_option': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.AttributeOption']", 'null': 'True', 'blank': 'True'}),
            'value_richtext': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'value_text': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
        },
        u'catalogue.productcategory': {
            'Meta': {'ordering': "['product', 'category']", 'object_name': 'ProductCategory'},
            'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Category']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'product': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Product']"})
        },
        u'catalogue.productclass': {
            'Meta': {'ordering': "['name']", 'object_name': 'ProductClass'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'options': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'}),
            'requires_shipping': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'slug': ('oscar.models.fields.autoslugfield.AutoSlugField', [], {'allow_duplicates': 'False', 'max_length': '128', 'separator': "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from': "'name'", 'overwrite': 'False'}),
            'track_stock': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
        },
        u'catalogue.productrecommendation': {
            'Meta': {'object_name': 'ProductRecommendation'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'primary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'primary_recommendations'", 'to': u"orm['catalogue.Product']"}),
            'ranking': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
            'recommendation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Product']"})
        },
        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'offer.benefit': {
            'Meta': {'object_name': 'Benefit'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'max_affected_items': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'proxy_class': ('oscar.models.fields.NullCharField', [], {'default': 'None', 'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'range': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['offer.Range']", 'null': 'True', 'blank': 'True'}),
            'type': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
            'value': ('oscar.models.fields.PositiveDecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'})
        },
        u'offer.condition': {
            'Meta': {'object_name': 'Condition'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'proxy_class': ('oscar.models.fields.NullCharField', [], {'default': 'None', 'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'range': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['offer.Range']", 'null': 'True', 'blank': 'True'}),
            'type': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
            'value': ('oscar.models.fields.PositiveDecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'})
        },
        u'offer.conditionaloffer': {
            'Meta': {'ordering': "['-priority']", 'object_name': 'ConditionalOffer'},
            'benefit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['offer.Benefit']"}),
            'condition': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['offer.Condition']"}),
            'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'max_basket_applications': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'max_discount': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
            'max_global_applications': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'max_user_applications': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
            'num_applications': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'num_orders': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'offer_type': ('django.db.models.fields.CharField', [], {'default': "'Site'", 'max_length': '128'}),
            'priority': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'redirect_url': ('oscar.models.fields.ExtendedURLField', [], {'max_length': '200', 'blank': 'True'}),
            'slug': ('oscar.models.fields.autoslugfield.AutoSlugField', [], {'allow_duplicates': 'False', 'max_length': '128', 'separator': "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from': "'name'", 'overwrite': 'False'}),
            'start_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'status': ('django.db.models.fields.CharField', [], {'default': "'Open'", 'max_length': '64'}),
            'total_discount': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '12', 'decimal_places': '2'})
        },
        u'offer.range': {
            'Meta': {'object_name': 'Range'},
            'classes': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'classes'", 'blank': 'True', 'to': u"orm['catalogue.ProductClass']"}),
            'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'excluded_products': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'excludes'", 'blank': 'True', 'to': u"orm['catalogue.Product']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'included_categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'includes'", 'blank': 'True', 'to': u"orm['catalogue.Category']"}),
            'included_products': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'includes'", 'blank': 'True', 'through': u"orm['offer.RangeProduct']", 'to': u"orm['catalogue.Product']"}),
            'includes_all_products': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_public': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
            'proxy_class': ('oscar.models.fields.NullCharField', [], {'default': 'None', 'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '128', 'unique': 'True', 'null': 'True'})
        },
        u'offer.rangeproduct': {
            'Meta': {'unique_together': "(('range', 'product'),)", 'object_name': 'RangeProduct'},
            'display_order': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'product': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['catalogue.Product']"}),
            'range': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['offer.Range']"})
        },
        u'order.billingaddress': {
            'Meta': {'object_name': 'BillingAddress'},
            'country': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['address.Country']"}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line1': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'line2': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line3': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line4': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'postcode': ('oscar.models.fields.UppercaseCharField', [], {'max_length': '64', 'blank': 'True'}),
            'search_text': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
            'state': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'})
        },
        u'order.order': {
            'Meta': {'ordering': "['-date_placed']", 'object_name': 'Order'},
            'basket': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['basket.Basket']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
            'billing_address': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['order.BillingAddress']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
            'currency': ('django.db.models.fields.CharField', [], {'default': "'GBP'", 'max_length': '12'}),
            'date_placed': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
            'guest_email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'number': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
            'shipping_address': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['order.ShippingAddress']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
            'shipping_code': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '128', 'blank': 'True'}),
            'shipping_excl_tax': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
            'shipping_incl_tax': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
            'shipping_method': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
            'site': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['sites.Site']", 'null': 'True', 'on_delete': 'models.SET_NULL'}),
            'status': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
            'total_excl_tax': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '2'}),
            'total_incl_tax': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '2'}),
            'user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'orders'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"})
        },
        u'order.shippingaddress': {
            'Meta': {'object_name': 'ShippingAddress'},
            'country': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['address.Country']"}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line1': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'line2': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line3': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'line4': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'notes': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'phone_number': ('oscar.models.fields.PhoneNumberField', [], {'max_length': '128', 'blank': 'True'}),
            'postcode': ('oscar.models.fields.UppercaseCharField', [], {'max_length': '64', 'blank': 'True'}),
            'search_text': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
            'state': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'})
        },
        u'sites.site': {
            'Meta': {'ordering': "(u'domain',)", 'object_name': 'Site', 'db_table': "u'django_site'"},
            'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        u'voucher.voucher': {
            'Meta': {'object_name': 'Voucher'},
            'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'db_index': 'True'}),
            'date_created': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'num_basket_additions': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'num_orders': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'offers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'vouchers'", 'symmetrical': 'False', 'to': u"orm['offer.ConditionalOffer']"}),
            'start_datetime': ('django.db.models.fields.DateTimeField', [], {}),
            'total_discount': ('django.db.models.fields.DecimalField', [], {'default': "'0.00'", 'max_digits': '12', 'decimal_places': '2'}),
            'usage': ('django.db.models.fields.CharField', [], {'default': "'Multi-use'", 'max_length': '128'})
        }
    }

    complete_apps = ['amazon_payments']