From 640cfae96149df772ed78cc8def759e9103c0d33 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Tue, 29 Jul 2025 22:38:05 +0300 Subject: [PATCH] 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; --- core/graphene/object_types.py | 4 ++++ core/serializers/simple.py | 1 + 2 files changed, 5 insertions(+) diff --git a/core/graphene/object_types.py b/core/graphene/object_types.py index 8bd074e7..eb0e87c1 100644 --- a/core/graphene/object_types.py +++ b/core/graphene/object_types.py @@ -393,6 +393,10 @@ class ProductType(DjangoObjectType): "slug", "description", "feedbacks", + "feedbacks_count", + "personal_orders_only", + "quantity", + "attribute_groups", "images", "price", ) diff --git a/core/serializers/simple.py b/core/serializers/simple.py index 6c7a2f30..658f5fe4 100644 --- a/core/serializers/simple.py +++ b/core/serializers/simple.py @@ -169,6 +169,7 @@ class ProductSimpleSerializer(ModelSerializer): "partnumber", "brand", "feedbacks_count", + "personal_orders_only", "category", "tags", "images",