Tweaks to the docs

pull/3794/merge
Karl Hobley 2017-10-05 10:43:30 +01:00 zatwierdzone przez Matt Westcott
rodzic 0cb63c72c5
commit 48cfb8e790
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -149,7 +149,7 @@ Invalidating index pages
^^^^^^^^^^^^^^^^^^^^^^^^
Pages that list other pages (such as a blog index) may need to be purged as
well so any changes to a blog page is also reflected on the index (for example,
well so any changes to a blog page are also reflected on the index (for example,
a blog post was added, deleted or its title/thumbnail was changed).
To purge these pages, we need to write a signal handler that listens for
@ -180,7 +180,7 @@ This signal handler would trigger the invalidation of the index page using the
batch.purge()
@receiver(page_published, sender=BlogPage):
@receiver(page_published, sender=BlogPage)
def blog_published_handler(instance):
blog_page_changed(instance)