mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 16:53:10 +00:00
Fixes the DB backend.
This commit is contained in:
parent
c9e0a54372
commit
a8196fd1a1
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ class DatabaseSearchResults(BaseSearchResults):
|
|||
queryset = self.get_queryset()
|
||||
|
||||
# Call query._get_order_by so it can raise errors if a non-indexed field is used for ordering
|
||||
list(self.query._get_order_by())
|
||||
list(self.query_compiler._get_order_by())
|
||||
|
||||
if self._score_field:
|
||||
queryset = queryset.annotate(**{self._score_field: Value(None, output_field=models.FloatField())})
|
||||
|
|
|
|||
Loading…
Reference in a new issue