Skip to content

Commit

Permalink
OrderLine attributes mapped
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhighbiza authored Sep 25, 2024
1 parent f90a366 commit e53e867
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oscar_odin/mappings/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def prices(self) -> List[resources.order.LinePrice]:
@odin.assign_field
def attributes(self) -> Dict[str, Any]:
"""Map attributes."""
return dict(self.source.attributes.values_list("type", "value"))


class StatusChangeToResource(OscarBaseMapping):
Expand Down

0 comments on commit e53e867

Please sign in to comment.