Skip to content

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

Remove unused field

Marcin Gębala05c6557b4857
diff --git a/saleor/graphql/order/types.py b/saleor/graphql/order/types.py
index c5587a9708..7c9b0c1f6f 100644
--- a/saleor/graphql/order/types.py
+++ b/saleor/graphql/order/types.py
@@ -18,8 +18,6 @@ class Order(CountableDjangoObjectType):
description='User-friendly order status.')
captured_amount = graphene.Field(
Money, description='Amount captured by payment.')
- total_price = graphene.Field(
- TaxedMoney, description='Total price of the order.')
class Meta:
description = 'Represents an order in the shop.'
@@ -49,11 +47,6 @@ class Order(CountableDjangoObjectType):
def resolve_status_display(self, info):
return self.get_status_display()
- def resolve_total_prize(self, info):
- payment = self.get_last_payment()
- if payment:
- return payment.get_total_price()
-
class OrderHistoryEntry(CountableDjangoObjectType):
class Meta:
@@ -69,7 +62,7 @@ class OrderLine(CountableDjangoObjectType):
model = models.OrderLine
interfaces = [relay.Node]
exclude_fields = [
- 'variant', 'unit_price_gross', 'unit_price_net', 'order']
+ 'order', 'unit_price_gross', 'unit_price_net', 'variant']
class OrderNote(CountableDjangoObjectType):