Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix the issues coming from the rebase
NyanKiyoshid73d06bcd556
diff --git a/saleor/graphql/order/bulk_mutations/draft_orders.py b/saleor/graphql/order/bulk_mutations/draft_orders.pyindex c0233fab74..097a0eb9ca 100644--- a/saleor/graphql/order/bulk_mutations/draft_orders.py+++ b/saleor/graphql/order/bulk_mutations/draft_orders.py@@ -38,11 +38,11 @@ class DraftOrderLinesBulkDelete(ModelBulkDeleteMutation):model = models.OrderLine@classmethod- def clean_instance(cls, info, instance):+ def clean_instance(cls, _info, instance):if instance.order.status != OrderStatus.DRAFT:raise ValidationError({'id': 'Cannot delete line for non-draft orders.'})@classmethod- def user_is_allowed(cls, user, input):+ def user_is_allowed(cls, user, _ids):return user.has_perm('order.manage_orders')diff --git a/saleor/graphql/page/bulk_mutations.py b/saleor/graphql/page/bulk_mutations.pyindex c5ab076d69..dd7865dd6b 100644--- a/saleor/graphql/page/bulk_mutations.py+++ b/saleor/graphql/page/bulk_mutations.py@@ -32,7 +32,7 @@ class PageBulkPublish(ModelBulkPublishMutation):model = models.Page@classmethod- def user_is_allowed(cls, user, input):+ def user_is_allowed(cls, user, _ids):return user.has_perm('page.manage_pages')diff --git a/saleor/graphql/product/mutations/attributes.py b/saleor/graphql/product/mutations/attributes.pyindex e2b98d4c87..82a2f58995 100644--- a/saleor/graphql/product/mutations/attributes.py+++ b/saleor/graphql/product/mutations/attributes.py@@ -2,7 +2,6 @@ import graphenefrom django.core.exceptions import ValidationErrorfrom django.db.models import Qfrom django.template.defaultfilters import slugify-from graphql_jwt.decorators import permission_requiredfrom ....product import modelsfrom ...core.mutations import ModelDeleteMutation, ModelMutation