Features: 1) Add feedbacks_count, personal_orders_only, quantity, and attribute_groups to graphene object types; 2) Extend serializer to include personal_orders_only;
Fixes: None; Extra: None;
This commit is contained in:
parent
7f8ab0de88
commit
640cfae961
2 changed files with 5 additions and 0 deletions
|
|
@ -393,6 +393,10 @@ class ProductType(DjangoObjectType):
|
||||||
"slug",
|
"slug",
|
||||||
"description",
|
"description",
|
||||||
"feedbacks",
|
"feedbacks",
|
||||||
|
"feedbacks_count",
|
||||||
|
"personal_orders_only",
|
||||||
|
"quantity",
|
||||||
|
"attribute_groups",
|
||||||
"images",
|
"images",
|
||||||
"price",
|
"price",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,7 @@ class ProductSimpleSerializer(ModelSerializer):
|
||||||
"partnumber",
|
"partnumber",
|
||||||
"brand",
|
"brand",
|
||||||
"feedbacks_count",
|
"feedbacks_count",
|
||||||
|
"personal_orders_only",
|
||||||
"category",
|
"category",
|
||||||
"tags",
|
"tags",
|
||||||
"images",
|
"images",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue