0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

turn DeferringManager into QuerySet

This commit is contained in:
Eric Drechsel 2015-01-27 15:16:03 -08:00
parent 02457685b3
commit 934bba30de

View File

@ -162,7 +162,7 @@ Callables also provide a way to index fields from related models. In the example
# ...
def get_related_link_titles(self):
# Get list of titles and concatenate them
return '\n'.join(self.related_links.values_list('title', flat=True))
return '\n'.join(self.related_links.all().values_list('title', flat=True))
search_fields = Page.search_fields + [
# ...