From e1b08451dbd12184c604931980d11fb0071209d0 Mon Sep 17 00:00:00 2001 From: Viggo de Vries Date: Wed, 30 Oct 2024 11:23:03 +0100 Subject: [PATCH] Revert "Add line, type to the admin serializer" This reverts commit dd34e14b1fa88527c4fecef1cb6686ec5723f9aa. --- oscarapi/serializers/admin/order.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oscarapi/serializers/admin/order.py b/oscarapi/serializers/admin/order.py index 01afb50f..89e5d3b5 100644 --- a/oscarapi/serializers/admin/order.py +++ b/oscarapi/serializers/admin/order.py @@ -18,9 +18,10 @@ class AdminOrderLineAttributeSerializer(OrderLineAttributeSerializer): url = serializers.HyperlinkedIdentityField( view_name="admin-order-lineattributes-detail" ) - line = serializers.HyperlinkedIdentityField(view_name="admin-order-lines-detail") class AdminOrderLineSerializer(OrderLineSerializer): url = serializers.HyperlinkedIdentityField(view_name="admin-order-lines-detail") - attributes = AdminOrderLineAttributeSerializer(many=True, required=False) + attributes = AdminOrderLineAttributeSerializer( + many=True, fields=("url", "option", "value"), required=False + )