Skip to content

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

reduce warnings

Noel Martin Llevares480efdfaef9f
diff --git a/saleor/product/migrations/0003_auto_20150820_2016.py b/saleor/product/migrations/0003_auto_20150820_2016.py
new file mode 100644
index 0000000000..09ec195e50
--- /dev/null
+++ b/saleor/product/migrations/0003_auto_20150820_2016.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('product', '0002_auto_20150722_0545'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='product',
+ name='attributes',
+ field=models.ManyToManyField(related_name='products', to='product.ProductAttribute', blank=True),
+ ),
+ ]
diff --git a/saleor/product/models/base.py b/saleor/product/models/base.py
index a2ab0400a4..cac04e8c76 100644
--- a/saleor/product/models/base.py
+++ b/saleor/product/models/base.py
@@ -88,7 +88,7 @@ class Product(models.Model, ItemRange):
available_on = models.DateField(
pgettext_lazy('Product field', 'available on'), blank=True, null=True)
attributes = models.ManyToManyField(
- 'ProductAttribute', related_name='products', blank=True, null=True)
+ 'ProductAttribute', related_name='products', blank=True)
objects = ProductManager()
diff --git a/saleor/settings.py b/saleor/settings.py
index 4a583426ee..f24b850e3c 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -116,13 +116,13 @@ INSTALLED_APPS = [
'django.contrib.webdesign',
# Local apps
+ 'saleor.userprofile',
+ 'saleor.product',
'saleor.cart',
'saleor.checkout',
'saleor.core',
- 'saleor.product',
'saleor.order',
'saleor.registration',
- 'saleor.userprofile',
'saleor.dashboard',
# External apps