Features: 1) Add personal_orders_only to the serialized fields for Product;
Extra: 1) Added field to match backend model state;
This commit is contained in:
parent
b40f7e641f
commit
435b7305d7
1 changed files with 1 additions and 0 deletions
|
|
@ -277,6 +277,7 @@ class ProductDetailSerializer(ModelSerializer):
|
||||||
"created",
|
"created",
|
||||||
"modified",
|
"modified",
|
||||||
"discount_price",
|
"discount_price",
|
||||||
|
"personal_orders_only",
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_rating(self, obj: Product) -> float:
|
def get_rating(self, obj: Product) -> float:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue