django/tests/admin_views
Unai Zalakain fd219fa24c Fixed #8261 -- ModelAdmin hook for customising the "show on site" button
``ModelAdmin.view_on_site`` defines wether to show a link to the object on the
admin detail page. If ``True``, cleverness (i.e. ``Model.get_absolute_url``) is
used to get the url. If it's a callable, the callable is called with the object
as the only parameter. If ``False``, not link is displayed.

With the aim of maitaining backwards compatibility, ``True`` is the default.
2013-10-29 17:10:12 -04:00
..
fixtures Fixed #8261 -- ModelAdmin hook for customising the "show on site" button 2013-10-29 17:10:12 -04:00
templates Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
admin.py Fixed #8261 -- ModelAdmin hook for customising the "show on site" button 2013-10-29 17:10:12 -04:00
customadmin.py Added a test for AdminSite.app_index_template; refs #8498. 2013-07-31 06:59:15 -04:00
forms.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
models.py Fixed #8261 -- ModelAdmin hook for customising the "show on site" button 2013-10-29 17:10:12 -04:00
tests.py Fixed #8261 -- ModelAdmin hook for customising the "show on site" button 2013-10-29 17:10:12 -04:00
urls.py Removed most of absolute_import imports 2013-07-29 20:28:13 +02:00
views.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00