fix error and update readme

This commit is contained in:
2025-05-28 09:28:28 +02:00
parent 666ce5d4d4
commit 330124837f
2 changed files with 41 additions and 7 deletions

View File

@@ -173,7 +173,6 @@ class ShopStats(BaseModel):
# Update forward references
BrandInShop.model_rebuild()
ProductWithRelated.model_rebuild()
# Related Products schemas
class RelatedProductBase(BaseModel):
@@ -199,4 +198,7 @@ class ProductWithRelated(Product):
related_products: List["Product"] = []
class Config:
from_attributes = True
from_attributes = True
# Update forward references for classes that reference other classes
ProductWithRelated.model_rebuild()