mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-21 13:31:54 +00:00
Tweak to the RoutablePageMixin examples
Use view names as defined in the example above
This commit is contained in:
parent
0662f915ad
commit
a0ddfc9fec
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue