@@ -1304,7 +1304,6 @@ class AdminOrderSerializer(serializers.ModelSerializer):
1304
1304
payment_schedule = AdminOrderPaymentSerializer (many = True , read_only = True )
1305
1305
credit_card = AdminCreditCardSerializer (read_only = True )
1306
1306
has_waived_withdrawal_right = serializers .BooleanField (read_only = True )
1307
- from_batch_order = serializers .SerializerMethodField (read_only = True )
1308
1307
1309
1308
class Meta :
1310
1309
model = models .Order
@@ -1334,12 +1333,6 @@ def get_total_currency(self, *args, **kwargs) -> str:
1334
1333
"""Return the code of currency used by the instance"""
1335
1334
return settings .DEFAULT_CURRENCY
1336
1335
1337
- def get_from_batch_order (self , instance ) -> bool :
1338
- """
1339
- Return True if the order was created from a batch order, otherwise False.
1340
- """
1341
- return instance .from_batch_order
1342
-
1343
1336
1344
1337
class AdminOrderLightSerializer (serializers .ModelSerializer ):
1345
1338
"""
@@ -1365,7 +1358,6 @@ class AdminOrderLightSerializer(serializers.ModelSerializer):
1365
1358
total_currency = serializers .SerializerMethodField (read_only = True )
1366
1359
discount = serializers .SerializerMethodField (read_only = True )
1367
1360
voucher = serializers .SerializerMethodField (read_only = True )
1368
- from_batch_order = serializers .SerializerMethodField (read_only = True )
1369
1361
1370
1362
class Meta :
1371
1363
model = models .Order
@@ -1419,12 +1411,6 @@ def get_voucher(self, instance) -> str | None:
1419
1411
return instance .voucher .code
1420
1412
return None
1421
1413
1422
- def get_from_batch_order (self , instance ) -> bool :
1423
- """
1424
- Return True if the order was created from a batch order, otherwise False.
1425
- """
1426
- return instance .from_batch_order
1427
-
1428
1414
1429
1415
class AdminOrderExportSerializer (serializers .ModelSerializer ): # pylint: disable=too-many-public-methods
1430
1416
"""
0 commit comments