mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 16:53:10 +00:00
Replaces a remaining None with MATCH_ALL.
This commit is contained in:
parent
04e2deb309
commit
d537737166
1 changed files with 3 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ from django.test import TestCase
|
|||
from wagtail.tests.testapp.models import EventPage, SimplePage, SingleEventPage
|
||||
from wagtail.wagtailcore.models import Page, PageViewRestriction, Site
|
||||
from wagtail.wagtailcore.signals import page_unpublished
|
||||
from wagtail.wagtailsearch.query import MATCH_ALL
|
||||
|
||||
|
||||
class TestPageQuerySet(TestCase):
|
||||
|
|
@ -593,7 +594,8 @@ class TestSpecificQuery(TestCase):
|
|||
# 1276 - The database search backend didn't return results with the
|
||||
# specific type when searching a specific queryset.
|
||||
|
||||
pages = list(Page.objects.specific().live().in_menu().search(None, backend='wagtail.wagtailsearch.backends.db'))
|
||||
pages = list(Page.objects.specific().live().in_menu().search(
|
||||
MATCH_ALL, backend='wagtail.wagtailsearch.backends.db'))
|
||||
|
||||
# Check that each page is in the queryset with the correct type.
|
||||
# We don't care about order here
|
||||
|
|
|
|||
Loading…
Reference in a new issue