Skip to content

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

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.py
index 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.py
index 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.py
index e2b98d4c87..82a2f58995 100644
--- a/saleor/graphql/product/mutations/attributes.py
+++ b/saleor/graphql/product/mutations/attributes.py
@@ -2,7 +2,6 @@ import graphene
from django.core.exceptions import ValidationError
from django.db.models import Q
from django.template.defaultfilters import slugify
-from graphql_jwt.decorators import permission_required
from ....product import models
from ...core.mutations import ModelDeleteMutation, ModelMutation