From 1c4284366f0f82240e57a7a45fd9c4bd63941390 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 13 May 2021 07:52:47 +0300 Subject: Bring back contenttypes --- servo/views/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servo/views/product.py') diff --git a/servo/views/product.py b/servo/views/product.py index 47b9018..4c7f96f 100644 --- a/servo/views/product.py +++ b/servo/views/product.py @@ -82,7 +82,7 @@ def tags(request): Returns all product tags """ from servo.lib.utils import json_response - tags = TaggedItem.objects.filter(ref="product") + tags = TaggedItem.objects.filter(content_type__model="product") tags = tags.distinct("tag").values_list("tag", flat=True) return json_response(list(tags)) -- cgit v1.2.3