Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add migration files

akjanikc62826ae0a39
diff --git a/saleor/cart/migrations/0005_auto_20180108_0814.py b/saleor/cart/migrations/0005_auto_20180108_0814.py
new file mode 100644
index 0000000000..c91ce4aad3
--- /dev/null
+++ b/saleor/cart/migrations/0005_auto_20180108_0814.py
@@ -0,0 +1,91 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2018-01-08 14:14
+from __future__ import unicode_literals
+
+from django.conf import settings
+import django.core.validators
+from django.db import migrations, models
+import django.db.models.deletion
+import django_prices.models
+import jsonfield.fields
+import uuid
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('cart', '0004_auto_20171129_1004'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='cart',
+ name='checkout_data',
+ field=jsonfield.fields.JSONField(editable=False, null=True),
+ ),
+ migrations.AlterField(
+ model_name='cart',
+ name='created',
+ field=models.DateTimeField(auto_now_add=True),
+ ),
+ migrations.AlterField(
+ model_name='cart',
+ name='email',
+ field=models.EmailField(blank=True, max_length=254, null=True),
+ ),
+ migrations.AlterField(
+ model_name='cart',
+ name='last_status_change',
+ field=models.DateTimeField(auto_now_add=True),
+ ),
+ migrations.AlterField(
+ model_name='cart',
+ name='quantity',
+ field=models.PositiveIntegerField(default=0),
+ ),
+ migrations.AlterField(
+ model_name='cart',
+ name='status',
+ field=models.CharField(choices=[('open', 'Open - currently active'), ('payment', 'Waiting for payment'), ('saved', 'Saved - for items to be purchased later'), ('ordered', 'Submitted - an order was placed'), ('checkout', 'Checkout - processed in checkout'), ('canceled', 'Canceled - canceled by user')], default='open', max_length=32),
+ ),
+ migrations.AlterField(
+ model_name='cart',
+ name='token',
+ field=models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False),
+ ),
+ migrations.AlterField(
+ model_name='cart',
+ name='total',
+ field=django_prices.models.PriceField(currency='USD', decimal_places=2, default=0, max_digits=12),
+ ),
+ migrations.AlterField(
+ model_name='cart',
+ name='user',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='carts', to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='cart',
+ name='voucher',
+ field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='discount.Voucher'),
+ ),
+ migrations.AlterField(
+ model_name='cartline',
+ name='cart',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lines', to='cart.Cart'),
+ ),
+ migrations.AlterField(
+ model_name='cartline',
+ name='data',
+ field=jsonfield.fields.JSONField(blank=True, default={}),
+ ),
+ migrations.AlterField(
+ model_name='cartline',
+ name='quantity',
+ field=models.PositiveIntegerField(validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(999)]),
+ ),
+ migrations.AlterField(
+ model_name='cartline',
+ name='variant',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='product.ProductVariant'),
+ ),
+ ]
diff --git a/saleor/dashboard/category/forms.py b/saleor/dashboard/category/forms.py
index fff38a2b0b..8b68b89e4e 100644
--- a/saleor/dashboard/category/forms.py
+++ b/saleor/dashboard/category/forms.py
@@ -10,13 +10,7 @@ from ...product.models import Category
class CategoryForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
self.parent_pk = kwargs.pop('parent_pk')
-<<<<<<< HEAD
- super().__init__(*args, **kwargs)
- self.fields['is_hidden'].label = pgettext_lazy(
- 'Category form field label', 'Hide in site navigation')
-=======
super(CategoryForm, self).__init__(*args, **kwargs)
->>>>>>> Use useful context descriptions for labels
if self.instance.parent and self.instance.parent.is_hidden:
self.fields['is_hidden'].widget.attrs['disabled'] = True
diff --git a/saleor/discount/migrations/0007_auto_20180108_0814.py b/saleor/discount/migrations/0007_auto_20180108_0814.py
new file mode 100644
index 0000000000..c50e67e6fd
--- /dev/null
+++ b/saleor/discount/migrations/0007_auto_20180108_0814.py
@@ -0,0 +1,103 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2018-01-08 14:14
+from __future__ import unicode_literals
+
+import datetime
+from django.db import migrations, models
+import django.db.models.deletion
+import django_prices.models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('discount', '0006_auto_20171129_1004'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='sale',
+ name='categories',
+ field=models.ManyToManyField(blank=True, to='product.Category'),
+ ),
+ migrations.AlterField(
+ model_name='sale',
+ name='name',
+ field=models.CharField(max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='sale',
+ name='products',
+ field=models.ManyToManyField(blank=True, to='product.Product'),
+ ),
+ migrations.AlterField(
+ model_name='sale',
+ name='type',
+ field=models.CharField(choices=[('fixed', 'USD'), ('percentage', '%')], default='fixed', max_length=10),
+ ),
+ migrations.AlterField(
+ model_name='sale',
+ name='value',
+ field=models.DecimalField(decimal_places=2, default=0, max_digits=12),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='apply_to',
+ field=models.CharField(blank=True, max_length=20, null=True),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='category',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='product.Category'),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='code',
+ field=models.CharField(db_index=True, max_length=12, unique=True),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='discount_value',
+ field=models.DecimalField(decimal_places=2, max_digits=12),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='discount_value_type',
+ field=models.CharField(choices=[('fixed', 'USD'), ('percentage', '%')], default='fixed', max_length=10),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='end_date',
+ field=models.DateField(blank=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='limit',
+ field=django_prices.models.PriceField(blank=True, currency='USD', decimal_places=2, max_digits=12, null=True),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='name',
+ field=models.CharField(blank=True, max_length=255, null=True),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='product',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='product.Product'),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='start_date',
+ field=models.DateField(default=datetime.date.today),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='type',
+ field=models.CharField(choices=[('value', 'All purchases'), ('product', 'One product'), ('category', 'A category of products'), ('shipping', 'Shipping')], default='value', max_length=20),
+ ),
+ migrations.AlterField(
+ model_name='voucher',
+ name='usage_limit',
+ field=models.PositiveIntegerField(blank=True, null=True),
+ ),
+ ]
diff --git a/saleor/order/migrations/0027_auto_20180108_0814.py b/saleor/order/migrations/0027_auto_20180108_0814.py
new file mode 100644
index 0000000000..c9039dbc1a
--- /dev/null
+++ b/saleor/order/migrations/0027_auto_20180108_0814.py
@@ -0,0 +1,190 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2018-01-08 14:14
+from __future__ import unicode_literals
+
+from django.conf import settings
+import django.core.validators
+from django.db import migrations, models
+import django.db.models.deletion
+import django.utils.timezone
+import django_prices.models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('order', '0026_auto_20171218_0428'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='deliverygroup',
+ name='last_updated',
+ field=models.DateTimeField(auto_now=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='deliverygroup',
+ name='shipping_method_name',
+ field=models.CharField(blank=True, default=None, editable=False, max_length=255, null=True),
+ ),
+ migrations.AlterField(
+ model_name='deliverygroup',
+ name='status',
+ field=models.CharField(choices=[('new', 'Processing'), ('cancelled', 'Cancelled'), ('shipped', 'Shipped')], default='new', max_length=32),
+ ),
+ migrations.AlterField(
+ model_name='deliverygroup',
+ name='tracking_number',
+ field=models.CharField(blank=True, default='', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='billing_address',
+ field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='userprofile.Address'),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='created',
+ field=models.DateTimeField(default=django.utils.timezone.now, editable=False),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='discount_amount',
+ field=django_prices.models.PriceField(blank=True, currency='USD', decimal_places=2, max_digits=12, null=True),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='discount_name',
+ field=models.CharField(blank=True, default='', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='last_status_change',
+ field=models.DateTimeField(default=django.utils.timezone.now, editable=False),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='shipping_address',
+ field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='userprofile.Address'),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='shipping_price',
+ field=django_prices.models.PriceField(currency='USD', decimal_places=4, default=0, editable=False, max_digits=12),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='token',
+ field=models.CharField(max_length=36, unique=True),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='total_net',
+ field=django_prices.models.PriceField(blank=True, currency='USD', decimal_places=2, max_digits=12, null=True),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='total_tax',
+ field=django_prices.models.PriceField(blank=True, currency='USD', decimal_places=2, max_digits=12, null=True),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='tracking_client_id',
+ field=models.CharField(blank=True, editable=False, max_length=36),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='user',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='orders', to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='user_email',
+ field=models.EmailField(blank=True, default='', editable=False, max_length=254),
+ ),
+ migrations.AlterField(
+ model_name='order',
+ name='voucher',
+ field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='discount.Voucher'),
+ ),
+ migrations.AlterField(
+ model_name='orderhistoryentry',
+ name='comment',
+ field=models.CharField(blank=True, default='', max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='orderhistoryentry',
+ name='date',
+ field=models.DateTimeField(default=django.utils.timezone.now, editable=False),
+ ),
+ migrations.AlterField(
+ model_name='orderhistoryentry',
+ name='order',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='history', to='order.Order'),
+ ),
+ migrations.AlterField(
+ model_name='orderhistoryentry',
+ name='status',
+ field=models.CharField(choices=[('open', 'Open'), ('closed', 'Closed')], max_length=32),
+ ),
+ migrations.AlterField(
+ model_name='orderhistoryentry',
+ name='user',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='orderline',
+ name='delivery_group',
+ field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='lines', to='order.DeliveryGroup'),
+ ),
+ migrations.AlterField(
+ model_name='orderline',
+ name='product',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='product.Product'),
+ ),
+ migrations.AlterField(
+ model_name='orderline',
+ name='product_name',
+ field=models.CharField(max_length=128),
+ ),
+ migrations.AlterField(
+ model_name='orderline',
+ name='product_sku',
+ field=models.CharField(max_length=32),
+ ),
+ migrations.AlterField(
+ model_name='orderline',
+ name='quantity',
+ field=models.IntegerField(validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(999)]),
+ ),
+ migrations.AlterField(
+ model_name='orderline',
+ name='stock',
+ field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='product.Stock'),
+ ),
+ migrations.AlterField(
+ model_name='orderline',
+ name='stock_location',
+ field=models.CharField(default='', max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='orderline',
+ name='unit_price_gross',
+ field=models.DecimalField(decimal_places=4, max_digits=12),
+ ),
+ migrations.AlterField(
+ model_name='orderline',
+ name='unit_price_net',
+ field=models.DecimalField(decimal_places=4, max_digits=12),
+ ),
+ migrations.AlterField(
+ model_name='ordernote',
+ name='content',
+ field=models.CharField(max_length=250),
+ ),
+ migrations.AlterField(
+ model_name='payment',
+ name='order',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='payments', to='order.Order'),
+ ),
+ ]
diff --git a/saleor/product/migrations/0044_auto_20180108_0814.py b/saleor/product/migrations/0044_auto_20180108_0814.py
new file mode 100644
index 0000000000..11ae245282
--- /dev/null
+++ b/saleor/product/migrations/0044_auto_20180108_0814.py
@@ -0,0 +1,226 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2018-01-08 14:14
+from __future__ import unicode_literals
+
+from decimal import Decimal
+import django.contrib.postgres.fields.hstore
+import django.core.validators
+from django.db import migrations, models
+import django.db.models.deletion
+import django_prices.models
+import versatileimagefield.fields
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('product', '0043_auto_20171207_0839'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='attributechoicevalue',
+ name='color',
+ field=models.CharField(blank=True, max_length=7, validators=[django.core.validators.RegexValidator('^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$')]),
+ ),
+ migrations.AlterField(
+ model_name='attributechoicevalue',
+ name='name',
+ field=models.CharField(max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='category',
+ name='description',
+ field=models.TextField(blank=True),
+ ),
+ migrations.AlterField(
+ model_name='category',
+ name='is_hidden',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.AlterField(
+ model_name='category',
+ name='name',
+ field=models.CharField(max_length=128),
+ ),
+ migrations.AlterField(
+ model_name='category',
+ name='parent',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='product.Category'),
+ ),
+ migrations.AlterField(
+ model_name='category',
+ name='slug',
+ field=models.SlugField(),
+ ),
+ migrations.AlterField(
+ model_name='product',
+ name='attributes',
+ field=django.contrib.postgres.fields.hstore.HStoreField(default={}),
+ ),
+ migrations.AlterField(
+ model_name='product',
+ name='available_on',
+ field=models.DateField(blank=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='product',
+ name='categories',
+ field=models.ManyToManyField(related_name='products', to='product.Category'),
+ ),
+ migrations.AlterField(
+ model_name='product',
+ name='description',
+ field=models.TextField(),
+ ),
+ migrations.AlterField(
+ model_name='product',
+ name='is_featured',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.AlterField(
+ model_name='product',
+ name='is_published',
+ field=models.BooleanField(default=True),
+ ),
+ migrations.AlterField(
+ model_name='product',
+ name='name',
+ field=models.CharField(max_length=128),
+ ),
+ migrations.AlterField(
+ model_name='product',
+ name='price',
+ field=django_prices.models.PriceField(currency='USD', decimal_places=2, max_digits=12),
+ ),
+ migrations.AlterField(
+ model_name='product',
+ name='product_class',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='products', to='product.ProductClass'),
+ ),
+ migrations.AlterField(
+ model_name='product',
+ name='updated_at',
+ field=models.DateTimeField(auto_now=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='productattribute',
+ name='name',
+ field=models.CharField(max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='productattribute',
+ name='slug',
+ field=models.SlugField(unique=True),
+ ),
+ migrations.AlterField(
+ model_name='productclass',
+ name='has_variants',
+ field=models.BooleanField(default=True),
+ ),
+ migrations.AlterField(
+ model_name='productclass',
+ name='is_shipping_required',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.AlterField(
+ model_name='productclass',
+ name='name',
+ field=models.CharField(max_length=128),
+ ),
+ migrations.AlterField(
+ model_name='productclass',
+ name='product_attributes',
+ field=models.ManyToManyField(blank=True, related_name='products_class', to='product.ProductAttribute'),
+ ),
+ migrations.AlterField(
+ model_name='productclass',
+ name='variant_attributes',
+ field=models.ManyToManyField(blank=True, related_name='product_variants_class', to='product.ProductAttribute'),
+ ),
+ migrations.AlterField(
+ model_name='productimage',
+ name='alt',
+ field=models.CharField(blank=True, max_length=128),
+ ),
+ migrations.AlterField(
+ model_name='productimage',
+ name='image',
+ field=versatileimagefield.fields.VersatileImageField(upload_to='products'),
+ ),
+ migrations.AlterField(
+ model_name='productimage',
+ name='order',
+ field=models.PositiveIntegerField(editable=False),
+ ),
+ migrations.AlterField(
+ model_name='productimage',
+ name='ppoi',
+ field=versatileimagefield.fields.PPOIField(default='0.5x0.5', editable=False, max_length=20),
+ ),
+ migrations.AlterField(
+ model_name='productimage',
+ name='product',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='images', to='product.Product'),
+ ),
+ migrations.AlterField(
+ model_name='productvariant',
+ name='attributes',
+ field=django.contrib.postgres.fields.hstore.HStoreField(default={}),
+ ),
+ migrations.AlterField(
+ model_name='productvariant',
+ name='images',
+ field=models.ManyToManyField(through='product.VariantImage', to='product.ProductImage'),
+ ),
+ migrations.AlterField(
+ model_name='productvariant',
+ name='name',
+ field=models.CharField(blank=True, max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='productvariant',
+ name='price_override',
+ field=django_prices.models.PriceField(blank=True, currency='USD', decimal_places=2, max_digits=12, null=True),
+ ),
+ migrations.AlterField(
+ model_name='productvariant',
+ name='sku',
+ field=models.CharField(max_length=32, unique=True),
+ ),
+ migrations.AlterField(
+ model_name='stock',
+ name='cost_price',
+ field=django_prices.models.PriceField(blank=True, currency='USD', decimal_places=2, max_digits=12, null=True),
+ ),
+ migrations.AlterField(
+ model_name='stock',
+ name='quantity',
+ field=models.IntegerField(default=Decimal('1'), validators=[django.core.validators.MinValueValidator(0)]),
+ ),
+ migrations.AlterField(
+ model_name='stock',
+ name='quantity_allocated',
+ field=models.IntegerField(default=Decimal('0'), validators=[django.core.validators.MinValueValidator(0)]),
+ ),
+ migrations.AlterField(
+ model_name='stock',
+ name='variant',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stock', to='product.ProductVariant'),
+ ),
+ migrations.AlterField(
+ model_name='stocklocation',
+ name='name',
+ field=models.CharField(max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='variantimage',
+ name='image',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='variant_images', to='product.ProductImage'),
+ ),
+ migrations.AlterField(
+ model_name='variantimage',
+ name='variant',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='variant_images', to='product.ProductVariant'),
+ ),
+ ]
diff --git a/saleor/shipping/migrations/0008_auto_20180108_0814.py b/saleor/shipping/migrations/0008_auto_20180108_0814.py
new file mode 100644
index 0000000000..f6b0b242b3
--- /dev/null
+++ b/saleor/shipping/migrations/0008_auto_20180108_0814.py
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2018-01-08 14:14
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+import django_prices.models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('shipping', '0007_auto_20171129_1004'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='shippingmethod',
+ name='description',
+ field=models.TextField(blank=True, default=''),
+ ),
+ migrations.AlterField(
+ model_name='shippingmethod',
+ name='name',
+ field=models.CharField(max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='shippingmethodcountry',
+ name='country_code',
+ field=models.CharField(blank=True, choices=[('', 'Rest of World'), ('AF', 'Afghanistan'), ('AX', 'Åland Islands'), ('AL', 'Albania'), ('DZ', 'Algeria'), ('AS', 'American Samoa'), ('AD', 'Andorra'), ('AO', 'Angola'), ('AI', 'Anguilla'), ('AQ', 'Antarctica'), ('AG', 'Antigua and Barbuda'), ('AR', 'Argentina'), ('AM', 'Armenia'), ('AW', 'Aruba'), ('AU', 'Australia'), ('AT', 'Austria'), ('AZ', 'Azerbaijan'), ('BS', 'Bahamas'), ('BH', 'Bahrain'), ('BD', 'Bangladesh'), ('BB', 'Barbados'), ('BY', 'Belarus'), ('BE', 'Belgium'), ('BZ', 'Belize'), ('BJ', 'Benin'), ('BM', 'Bermuda'), ('BT', 'Bhutan'), ('BO', 'Bolivia'), ('BQ', 'Bonaire, Sint Eustatius and Saba'), ('BA', 'Bosnia and Herzegovina'), ('BW', 'Botswana'), ('BV', 'Bouvet Island'), ('BR', 'Brazil'), ('IO', 'British Indian Ocean Territory'), ('BN', 'Brunei'), ('BG', 'Bulgaria'), ('BF', 'Burkina Faso'), ('BI', 'Burundi'), ('CV', 'Cabo Verde'), ('KH', 'Cambodia'), ('CM', 'Cameroon'), ('CA', 'Canada'), ('KY', 'Cayman Islands'), ('CF', 'Central African Republic'), ('TD', 'Chad'), ('CL', 'Chile'), ('CN', 'China'), ('CX', 'Christmas Island'), ('CC', 'Cocos (Keeling) Islands'), ('CO', 'Colombia'), ('KM', 'Comoros'), ('CG', 'Congo'), ('CD', 'Congo (the Democratic Republic of the)'), ('CK', 'Cook Islands'), ('CR', 'Costa Rica'), ('CI', "Côte d'Ivoire"), ('HR', 'Croatia'), ('CU', 'Cuba'), ('CW', 'Curaçao'), ('CY', 'Cyprus'), ('CZ', 'Czechia'), ('DK', 'Denmark'), ('DJ', 'Djibouti'), ('DM', 'Dominica'), ('DO', 'Dominican Republic'), ('EC', 'Ecuador'), ('EG', 'Egypt'), ('SV', 'El Salvador'), ('GQ', 'Equatorial Guinea'), ('ER', 'Eritrea'), ('EE', 'Estonia'), ('ET', 'Ethiopia'), ('FK', 'Falkland Islands [Malvinas]'), ('FO', 'Faroe Islands'), ('FJ', 'Fiji'), ('FI', 'Finland'), ('FR', 'France'), ('GF', 'French Guiana'), ('PF', 'French Polynesia'), ('TF', 'French Southern Territories'), ('GA', 'Gabon'), ('GM', 'Gambia'), ('GE', 'Georgia'), ('DE', 'Germany'), ('GH', 'Ghana'), ('GI', 'Gibraltar'), ('GR', 'Greece'), ('GL', 'Greenland'), ('GD', 'Grenada'), ('GP', 'Guadeloupe'), ('GU', 'Guam'), ('GT', 'Guatemala'), ('GG', 'Guernsey'), ('GN', 'Guinea'), ('GW', 'Guinea-Bissau'), ('GY', 'Guyana'), ('HT', 'Haiti'), ('HM', 'Heard Island and McDonald Islands'), ('VA', 'Holy See'), ('HN', 'Honduras'), ('HK', 'Hong Kong'), ('HU', 'Hungary'), ('IS', 'Iceland'), ('IN', 'India'), ('ID', 'Indonesia'), ('IR', 'Iran'), ('IQ', 'Iraq'), ('IE', 'Ireland'), ('IM', 'Isle of Man'), ('IL', 'Israel'), ('IT', 'Italy'), ('JM', 'Jamaica'), ('JP', 'Japan'), ('JE', 'Jersey'), ('JO', 'Jordan'), ('KZ', 'Kazakhstan'), ('KE', 'Kenya'), ('KI', 'Kiribati'), ('KW', 'Kuwait'), ('KG', 'Kyrgyzstan'), ('LA', 'Laos'), ('LV', 'Latvia'), ('LB', 'Lebanon'), ('LS', 'Lesotho'), ('LR', 'Liberia'), ('LY', 'Libya'), ('LI', 'Liechtenstein'), ('LT', 'Lithuania'), ('LU', 'Luxembourg'), ('MO', 'Macao'), ('MK', 'Macedonia'), ('MG', 'Madagascar'), ('MW', 'Malawi'), ('MY', 'Malaysia'), ('MV', 'Maldives'), ('ML', 'Mali'), ('MT', 'Malta'), ('MH', 'Marshall Islands'), ('MQ', 'Martinique'), ('MR', 'Mauritania'), ('MU', 'Mauritius'), ('YT', 'Mayotte'), ('MX', 'Mexico'), ('FM', 'Micronesia (Federated States of)'), ('MD', 'Moldova'), ('MC', 'Monaco'), ('MN', 'Mongolia'), ('ME', 'Montenegro'), ('MS', 'Montserrat'), ('MA', 'Morocco'), ('MZ', 'Mozambique'), ('MM', 'Myanmar'), ('NA', 'Namibia'), ('NR', 'Nauru'), ('NP', 'Nepal'), ('NL', 'Netherlands'), ('NC', 'New Caledonia'), ('NZ', 'New Zealand'), ('NI', 'Nicaragua'), ('NE', 'Niger'), ('NG', 'Nigeria'), ('NU', 'Niue'), ('NF', 'Norfolk Island'), ('KP', 'North Korea'), ('MP', 'Northern Mariana Islands'), ('NO', 'Norway'), ('OM', 'Oman'), ('PK', 'Pakistan'), ('PW', 'Palau'), ('PS', 'Palestine, State of'), ('PA', 'Panama'), ('PG', 'Papua New Guinea'), ('PY', 'Paraguay'), ('PE', 'Peru'), ('PH', 'Philippines'), ('PN', 'Pitcairn'), ('PL', 'Poland'), ('PT', 'Portugal'), ('PR', 'Puerto Rico'), ('QA', 'Qatar'), ('RE', 'Réunion'), ('RO', 'Romania'), ('RU', 'Russia'), ('RW', 'Rwanda'), ('BL', 'Saint Barthélemy'), ('SH', 'Saint Helena, Ascension and Tristan da Cunha'), ('KN', 'Saint Kitts and Nevis'), ('LC', 'Saint Lucia'), ('MF', 'Saint Martin (French part)'), ('PM', 'Saint Pierre and Miquelon'), ('VC', 'Saint Vincent and the Grenadines'), ('WS', 'Samoa'), ('SM', 'San Marino'), ('ST', 'Sao Tome and Principe'), ('SA', 'Saudi Arabia'), ('SN', 'Senegal'), ('RS', 'Serbia'), ('SC', 'Seychelles'), ('SL', 'Sierra Leone'), ('SG', 'Singapore'), ('SX', 'Sint Maarten (Dutch part)'), ('SK', 'Slovakia'), ('SI', 'Slovenia'), ('SB', 'Solomon Islands'), ('SO', 'Somalia'), ('ZA', 'South Africa'), ('GS', 'South Georgia and the South Sandwich Islands'), ('KR', 'South Korea'), ('SS', 'South Sudan'), ('ES', 'Spain'), ('LK', 'Sri Lanka'), ('SD', 'Sudan'), ('SR', 'Suriname'), ('SJ', 'Svalbard and Jan Mayen'), ('SZ', 'Swaziland'), ('SE', 'Sweden'), ('CH', 'Switzerland'), ('SY', 'Syria'), ('TW', 'Taiwan'), ('TJ', 'Tajikistan'), ('TZ', 'Tanzania'), ('TH', 'Thailand'), ('TL', 'Timor-Leste'), ('TG', 'Togo'), ('TK', 'Tokelau'), ('TO', 'Tonga'), ('TT', 'Trinidad and Tobago'), ('TN', 'Tunisia'), ('TR', 'Turkey'), ('TM', 'Turkmenistan'), ('TC', 'Turks and Caicos Islands'), ('TV', 'Tuvalu'), ('UG', 'Uganda'), ('UA', 'Ukraine'), ('AE', 'United Arab Emirates'), ('GB', 'United Kingdom'), ('UM', 'United States Minor Outlying Islands'), ('US', 'United States of America'), ('UY', 'Uruguay'), ('UZ', 'Uzbekistan'), ('VU', 'Vanuatu'), ('VE', 'Venezuela'), ('VN', 'Vietnam'), ('VG', 'Virgin Islands (British)'), ('VI', 'Virgin Islands (U.S.)'), ('WF', 'Wallis and Futuna'), ('EH', 'Western Sahara'), ('YE', 'Yemen'), ('ZM', 'Zambia'), ('ZW', 'Zimbabwe')], default='', max_length=2),
+ ),
+ migrations.AlterField(
+ model_name='shippingmethodcountry',
+ name='price',
+ field=django_prices.models.PriceField(currency='USD', decimal_places=2, max_digits=12),
+ ),
+ migrations.AlterField(
+ model_name='shippingmethodcountry',
+ name='shipping_method',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='price_per_country', to='shipping.ShippingMethod'),
+ ),
+ ]
diff --git a/saleor/site/migrations/0011_auto_20180108_0814.py b/saleor/site/migrations/0011_auto_20180108_0814.py
new file mode 100644
index 0000000000..7f8831d5e6
--- /dev/null
+++ b/saleor/site/migrations/0011_auto_20180108_0814.py
@@ -0,0 +1,40 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2018-01-08 14:14
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('site', '0010_auto_20171113_0958'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='authorizationkey',
+ name='key',
+ field=models.TextField(),
+ ),
+ migrations.AlterField(
+ model_name='authorizationkey',
+ name='name',
+ field=models.CharField(choices=[('facebook', 'Facebook-Oauth2'), ('google-oauth2', 'Google-Oauth2')], max_length=20),
+ ),
+ migrations.AlterField(
+ model_name='authorizationkey',
+ name='password',
+ field=models.TextField(),
+ ),
+ migrations.AlterField(
+ model_name='sitesettings',
+ name='description',
+ field=models.CharField(blank=True, max_length=500),
+ ),
+ migrations.AlterField(
+ model_name='sitesettings',
+ name='header_text',
+ field=models.CharField(blank=True, max_length=200),
+ ),
+ ]
diff --git a/saleor/userprofile/migrations/0016_auto_20180108_0814.py b/saleor/userprofile/migrations/0016_auto_20180108_0814.py
new file mode 100644
index 0000000000..2af2659a7e
--- /dev/null
+++ b/saleor/userprofile/migrations/0016_auto_20180108_0814.py
@@ -0,0 +1,109 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2018-01-08 14:14
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+import django.utils.timezone
+import django_countries.fields
+import saleor.userprofile.models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('userprofile', '0015_auto_20171213_0734'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='address',
+ name='city',
+ field=models.CharField(blank=True, max_length=256),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='city_area',
+ field=models.CharField(blank=True, max_length=128),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='company_name',
+ field=models.CharField(blank=True, max_length=256),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='country',
+ field=django_countries.fields.CountryField(max_length=2),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='country_area',
+ field=models.CharField(blank=True, max_length=128),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='first_name',
+ field=models.CharField(blank=True, max_length=256),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='last_name',
+ field=models.CharField(blank=True, max_length=256),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='phone',
+ field=saleor.userprofile.models.PossiblePhoneNumberField(blank=True, default='', max_length=128),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='postal_code',
+ field=models.CharField(blank=True, max_length=20),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='street_address_1',
+ field=models.CharField(blank=True, max_length=256),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='street_address_2',
+ field=models.CharField(blank=True, max_length=256),
+ ),
+ migrations.AlterField(
+ model_name='user',
+ name='addresses',
+ field=models.ManyToManyField(blank=True, to='userprofile.Address'),
+ ),
+ migrations.AlterField(
+ model_name='user',
+ name='date_joined',
+ field=models.DateTimeField(default=django.utils.timezone.now, editable=False),
+ ),
+ migrations.AlterField(
+ model_name='user',
+ name='default_billing_address',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='userprofile.Address'),
+ ),
+ migrations.AlterField(
+ model_name='user',
+ name='default_shipping_address',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='userprofile.Address'),
+ ),
+ migrations.AlterField(
+ model_name='user',
+ name='email',
+ field=models.EmailField(max_length=254, unique=True),
+ ),
+ migrations.AlterField(
+ model_name='user',
+ name='is_active',
+ field=models.BooleanField(default=True),
+ ),
+ migrations.AlterField(
+ model_name='user',
+ name='is_staff',
+ field=models.BooleanField(default=False),
+ ),
+ ]