Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Removed redundant copy.copy statement
Tomasz Szymanski832ef4a301e4
diff --git a/saleor/graphql/order/mutations/orders.py b/saleor/graphql/order/mutations/orders.pyindex e3a4bcf471..013d9bc193 100644--- a/saleor/graphql/order/mutations/orders.py+++ b/saleor/graphql/order/mutations/orders.py@@ -1,5 +1,3 @@-import copy-import graphenefrom django.core.exceptions import ValidationError@@ -640,7 +638,7 @@ class DeleteInvoice(ModelDeleteMutation):@classmethoddef perform_mutation(cls, _root, info, **data):- invoice_pk = copy.copy(cls.get_instance(info, **data).pk)+ invoice_pk = cls.get_instance(info, **data).pkresponse = super().perform_mutation(_root, info, **data)events.invoice_deleted_event(user=info.context.user, invoice_id=invoice_pk)return response