Full-text search using postgresql #162
@ -167,8 +167,6 @@ class SearchView(ListedExtensionsView):
|
||||
# pks are ordered by ranking, keep that order
|
||||
# this approach is fine under the assumption that the list is small
|
||||
return sorted(queryset.filter(pk__in=pks).order_by(), key=lambda x: pks.index(x.pk))
|
||||
queryset = queryset.filter(search_query).distinct()
|
||||
return queryset
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user