mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 08:43:10 +00:00
Add test for ordering Page search by title
This commit is contained in:
parent
2e44dc3c8e
commit
fd2753667b
1 changed files with 3 additions and 0 deletions
|
|
@ -34,6 +34,9 @@ class PageSearchTests(object):
|
|||
if index:
|
||||
index.refresh()
|
||||
|
||||
def test_order_by_title(self):
|
||||
list(Page.objects.order_by('title').search('blah', order_by_relevance=False, backend=self.backend_name))
|
||||
|
||||
def test_search_specific_queryset(self):
|
||||
list(Page.objects.specific().search('bread', backend=self.backend_name))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue