diff options
| author | Unai Zalakain <unai@gisa-elkartea.org> | 2013-10-24 17:28:09 +0200 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2013-10-29 17:10:12 -0400 |
| commit | fd219fa24c7911adab60e1f5e4fd3d7f9d82a969 (patch) | |
| tree | bebe575f54927599841c3be976eccfeeb7d84e49 /tests/admin_scripts/complex_app | |
| parent | 497930b7f69e2c298faa3f784c4523ea351e5e6f (diff) | |
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.
Diffstat (limited to 'tests/admin_scripts/complex_app')
0 files changed, 0 insertions, 0 deletions
