kopia lustrzana https://github.com/wagtail/wagtail
Evaluate tagged item pks in tag+search workaround instead of using a subquery
The query seems quite complex to be a subquerypull/11698/head
rodzic
f1610a992e
commit
c9a05832c1
|
@ -227,7 +227,7 @@ class PopularTagsFilter(django_filters.MultipleChoiceFilter):
|
|||
return filtered
|
||||
|
||||
# Workaround for https://github.com/wagtail/wagtail/issues/6616
|
||||
pks = filtered.values_list("pk", flat=True)
|
||||
pks = list(filtered.values_list("pk", flat=True))
|
||||
return qs.filter(pk__in=pks)
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue