in_pack_items for serializer
This commit is contained in:
@@ -46,7 +46,7 @@ class DynamicProductSerializer(serializers.ModelSerializer):
|
||||
fields = "__all__"
|
||||
view_type = {
|
||||
'list': ['name', 'price', 'image1', 'video', 'rating', 'discount', 'slug', 'category', 'colors'],
|
||||
'instance': ['name', 'description', 'price', 'image1', 'image2', 'image3', 'video', 'rating', 'discount', 'slug', 'meta_description', 'meta_keywords', 'meta_rating', 'category', 'colors', 'related_products', 'details'],
|
||||
'instance': ['name', 'description', 'price', 'image1', 'image2', 'image3', 'video', 'rating', 'discount', 'slug', 'meta_description', 'meta_keywords', 'meta_rating', 'category', 'colors', 'related_products', 'details', 'in_pack_items'],
|
||||
'chat': ['name', 'description', 'price', 'in_stock', 'discount', 'colors']
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user