Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Rename field location to name in Stock Location model
Mira Szewczykf5ad44fead5d
diff --git a/saleor/product/migrations/0019_auto_20161208_0324.py b/saleor/product/migrations/0019_auto_20161208_0324.pynew file mode 100644index 0000000000..de9e4156ff--- /dev/null+++ b/saleor/product/migrations/0019_auto_20161208_0324.py@@ -0,0 +1,20 @@+# -*- coding: utf-8 -*-+# Generated by Django 1.10.3 on 2016-12-08 09:24+from __future__ import unicode_literals++from django.db import migrations+++class Migration(migrations.Migration):++ dependencies = [+ ('product', '0018_auto_20161207_0844'),+ ]++ operations = [+ migrations.RenameField(+ model_name='stocklocation',+ old_name='location',+ new_name='name',+ ),+ ]diff --git a/saleor/product/models/base.py b/saleor/product/models/base.pyindex 03e5ee9d98..1f8e0daabc 100644--- a/saleor/product/models/base.py+++ b/saleor/product/models/base.py@@ -242,7 +242,7 @@ class ProductVariant(models.Model, Item):@python_2_unicode_compatibleclass StockLocation(models.Model):- location = models.CharField(+ name = models.CharField(pgettext_lazy('Stock item field', 'location'), max_length=100)def __str__(self):