Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Rename manage orders pnd productsermission
Pacu23995f202f40f
diff --git a/saleor/order/migrations/0049_auto_20180719_0520.py b/saleor/order/migrations/0049_auto_20180719_0520.pyindex 6efa0e6b75..53d3008d35 100644--- a/saleor/order/migrations/0049_auto_20180719_0520.py+++ b/saleor/order/migrations/0049_auto_20180719_0520.py@@ -12,6 +12,6 @@ class Migration(migrations.Migration):operations = [migrations.AlterModelOptions(name='order',- options={'ordering': ('-pk',), 'permissions': (('manage_orders', 'Manage orders, fulfillments and order notifications.'),)},+ options={'ordering': ('-pk',), 'permissions': (('manage_orders', 'Manage orders.'),)},),]diff --git a/saleor/order/models.py b/saleor/order/models.pyindex 02cbdfa25c..544ff121d4 100644--- a/saleor/order/models.py+++ b/saleor/order/models.py@@ -97,9 +97,7 @@ class Order(models.Model):ordering = ('-pk',)permissions = (('manage_orders',- pgettext_lazy(- 'Permission description',- 'Manage orders, fulfillments and order notifications.')),)+ pgettext_lazy('Permission description', 'Manage orders.')),)def save(self, *args, **kwargs):if not self.token:diff --git a/saleor/product/migrations/0065_auto_20180719_0520.py b/saleor/product/migrations/0065_auto_20180719_0520.pyindex bf84a4c6d2..9444009ad7 100644--- a/saleor/product/migrations/0065_auto_20180719_0520.py+++ b/saleor/product/migrations/0065_auto_20180719_0520.py@@ -16,6 +16,6 @@ class Migration(migrations.Migration):),migrations.AlterModelOptions(name='product',- options={'permissions': (('manage_products', 'Manage products. Access to inventory and inventory management.'),)},+ options={'permissions': (('manage_products', 'Manage products.'),)},),]diff --git a/saleor/product/models.py b/saleor/product/models.pyindex 325c578429..49d67b3776 100644--- a/saleor/product/models.py+++ b/saleor/product/models.py@@ -112,8 +112,7 @@ class Product(SeoModel):permissions = (('manage_products', pgettext_lazy('Permission description',- 'Manage products. Access to inventory '- 'and inventory management.')),)+ 'Manage products.')),)def __iter__(self):if not hasattr(self, '__variants'):