Skip to content

Commit

Permalink
Add line, type to the admin serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
viggo-devries committed Oct 30, 2024
1 parent a35ad3d commit dd34e14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions oscarapi/serializers/admin/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit dd34e14

Please sign in to comment.