Skip to content

Commit

Permalink
Allow setting product on product image resource, so you can save prod…
Browse files Browse the repository at this point in the history
…uct images independently from the product mapping itself. (#52)

Co-authored-by: Joey Jurjens <[email protected]>
  • Loading branch information
joeyjurjens and Joey Jurjens authored Nov 19, 2024
1 parent 8b2bc38 commit efb5c45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oscar_odin/resources/catalogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class Meta:
)
date_created: Optional[datetime]

product: Optional["ProductResource"] = odin.DictOf.delayed(lambda: ProductResource)


class CategoryResource(OscarCatalogueResource):
"""A category within Django Oscar."""
Expand Down

0 comments on commit efb5c45

Please sign in to comment.