Fixed #18444 -- Replace hard coded "View on Site" URLs

This commit is contained in:
Daniel Hepper 2012-06-08 12:32:16 +02:00 committed by Florian Apolloner
parent 108f8dddea
commit aee9eecb92
5 changed files with 16 additions and 14 deletions

View file

@ -1948,16 +1948,17 @@ accessible using Django's :ref:`URL reversing system <naming-url-patterns>`.
The :class:`AdminSite` provides the following named URL patterns:
====================== ======================== =============
Page URL name Parameters
====================== ======================== =============
Index ``index``
Logout ``logout``
Password change ``password_change``
Password change done ``password_change_done``
i18n javascript ``jsi18n``
Application index page ``app_list`` ``app_label``
====================== ======================== =============
========================= ======================== ==================================
Page URL name Parameters
========================= ======================== ==================================
Index ``index``
Logout ``logout``
Password change ``password_change``
Password change done ``password_change_done``
i18n javascript ``jsi18n``
Application index page ``app_list`` ``app_label``
Redirect to object's page ``view_on_site`` ``content_type_id``, ``object_id``
========================= ======================== ==================================
Each :class:`ModelAdmin` instance provides an additional set of named URLs: