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/forms/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servo/forms') diff --git a/servo/forms/product.py b/servo/forms/product.py index 480240d..7e0f52e 100644 --- a/servo/forms/product.py +++ b/servo/forms/product.py @@ -31,7 +31,7 @@ class ProductSearchForm(forms.Form): def __init__(self, *args, **kwargs): super(ProductSearchForm, self).__init__(*args, **kwargs) - tags = TaggedItem.objects.filter(ref="product").distinct("tag") + tags = TaggedItem.objects.filter(content_type__model="product").distinct("tag") self.fields['tag'].queryset = tags -- cgit v1.2.3