From 2673aa51aa369c1102904c93ee9a257134841a64 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 18 Mar 2021 11:20:30 +0000 Subject: [PATCH] changed product categories from label to name --- products/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/products/views.py b/products/views.py index 612be20..33e5266 100644 --- a/products/views.py +++ b/products/views.py @@ -373,6 +373,6 @@ def purchase_email(request): def all_categories(request): all_categories = [] for instance in CategoryTag.objects.all(): - all_categories.append(instance.label) + all_categories.append(instance.name) return Response(data=all_categories)