diff --git a/oscarapi/serializers/admin/order.py b/oscarapi/serializers/admin/order.py index 89e5d3b5..01afb50f 100644 --- a/oscarapi/serializers/admin/order.py +++ b/oscarapi/serializers/admin/order.py @@ -18,10 +18,9 @@ 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, fields=("url", "option", "value"), required=False - ) + attributes = AdminOrderLineAttributeSerializer(many=True, required=False)