mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-15 10:43:15 +00:00
Fixed search example in docs
This commit is contained in:
parent
bc2556db28
commit
5eaa605314
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ All methods of ``PageQuerySet`` are supported by wagtailsearch:
|
|||
.. code-block:: python
|
||||
|
||||
# Search all live EventPages that are under the events index
|
||||
>>> EventPage.objects.live().descendant_of(events_index).search("Hello")
|
||||
>>> EventPage.objects.live().descendant_of(events_index).search("Event")
|
||||
[<EventPage: Event 1>, <EventPage: Event 2>]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue