Skip to content

Commit

Permalink
Merge pull request #361 from django-oscar/add_all_attribute_fields
Browse files Browse the repository at this point in the history
Add line, type to the admin serializer
  • Loading branch information
viggo-devries authored Oct 30, 2024
2 parents a35ad3d + dd34e14 commit ffd926a
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 ffd926a

Please sign in to comment.