Tweak to the RoutablePageMixin examples

Use view names as defined in the example above
pull/1349/head
Karl Hobley 2015-05-28 15:18:18 +01:00
rodzic 0662f915ad
commit a0ddfc9fec
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -63,7 +63,7 @@ The ``RoutablePageMixin`` class
.. code-block:: python
view, args, kwargs = page.resolve_subpage('/archive/')
view, args, kwargs = page.resolve_subpage('/past/')
response = view(request, *args, **kwargs)
.. automethod:: reverse_subpage
@ -72,7 +72,7 @@ The ``RoutablePageMixin`` class
.. code-block:: python
url = page.url + page.reverse_subpage('archive', kwargs={'year': '2014'})
url = page.url + page.reverse_subpage('events_for_year', kwargs={'year': '2014'})
.. _routablepageurl_template_tag: