kopia lustrzana https://github.com/wagtail/wagtail
Tweak to the RoutablePageMixin examples
Use view names as defined in the example abovepull/1349/head
rodzic
0662f915ad
commit
a0ddfc9fec
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue