We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2131d0e commit 08b6bd8Copy full SHA for 08b6bd8
oscar_odin/resources/catalogue.py
@@ -70,7 +70,7 @@ class CategoryResource(OscarCatalogueResource):
70
depth: Optional[int]
71
path: Optional[str]
72
children: Optional[List["CategoryResource"]] = odin.ListOf.delayed(
73
- lambda: CategoryResource
+ lambda: CategoryResource, null=True
74
)
75
76
@@ -102,8 +102,8 @@ class ProductResource(OscarCatalogueResource):
102
id: Optional[int]
103
code: Optional[str]
104
upc: Optional[str]
105
- structure: str = StringField(choices=ProductModel.STRUCTURE_CHOICES)
106
- title: str
+ structure: Optional[str] = StringField(choices=ProductModel.STRUCTURE_CHOICES)
+ title: Optional[str]
107
slug: Optional[str]
108
description: Optional[str] = ""
109
meta_title: Optional[str]
0 commit comments