Tweaks to RoutablePage docstrings

Thanks to @tomdyson for suggestions
pull/1261/head
Karl Hobley 2015-05-14 10:21:38 +01:00
rodzic 4f98523116
commit 8274cb83d7
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -37,7 +37,7 @@ def route(pattern, name=None):
class RoutablePageMixin(object): class RoutablePageMixin(object):
""" """
This class can be mixed in to a Page model to allow extra routes to be This class can be mixed in to a Page model, allowing extra routes to be
added to it. added to it.
""" """
#: Set this to a tuple of ``django.conf.urls.url`` objects. #: Set this to a tuple of ``django.conf.urls.url`` objects.
@ -109,7 +109,7 @@ class RoutablePageMixin(object):
def route(self, request, path_components): def route(self, request, path_components):
""" """
This hooks the subpage URLs into Wagtails routing. This hooks the subpage URLs into Wagtail's routing.
""" """
if self.live: if self.live:
try: try:
@ -134,7 +134,7 @@ class RoutablePageMixin(object):
class RoutablePage(RoutablePageMixin, Page): class RoutablePage(RoutablePageMixin, Page):
""" """
This class extends Page by adding methods to allow extra routes to be This class extends Page by adding methods which allows extra routes to be
added to it. added to it.
""" """