Skip to content

Commit

Permalink
Added code field to product resource, which was added to oscar
Browse files Browse the repository at this point in the history
The code field can be used to store external id's
  • Loading branch information
specialunderwear committed Dec 4, 2024
1 parent 18e205a commit ec0b9e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oscar_odin/resources/catalogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class ProductResource(OscarCatalogueResource):
"""A product within Django Oscar."""

id: Optional[int]
code: Optional[str]
upc: Optional[str]
structure: str = StringField(choices=ProductModel.STRUCTURE_CHOICES)
title: str
Expand Down

0 comments on commit ec0b9e0

Please sign in to comment.