0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00

fix whitespace

This commit is contained in:
Eric Drechsel 2015-01-27 14:42:06 -08:00
parent 1aa0285bf4
commit 8374ec4df7

View File

@ -159,16 +159,16 @@ Callables also provide a way to index fields from related models. In the example
.. code-block:: python
class BookPage(Page):
...
def get_related_link_titles(self):
# Get list of titles and concatenate them
return '\n'.join(self.related_links.values_list('title', flat=True))
search_fields = Page.search_fields + [
...
index.SearchField('get_related_link_titles'),
]
def get_related_link_titles(self):
# Get list of titles and concatenate them
return '\n'.join(self.related_links.values_list('title', flat=True))
search_fields = Page.search_fields + [
...
index.SearchField('get_related_link_titles'),
]
.. _wagtailsearch_indexing_models: