Skip to content

Commit

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

0 comments on commit e1b0845

Please sign in to comment.