Branch: refs/heads/master
Home: https://github.com/django/django
Commit: fd219fa24c7911adab60e1f5e4fd3d7f9d82a969
https://github.com/django/django/commit/fd219fa24c7911adab60e1f5e4fd3d7f9d82a969
Author: Unai Zalakain <[email protected]>
Date: 2013-10-29 (Tue, 29 Oct 2013)
Changed paths:
M django/contrib/admin/helpers.py
M django/contrib/admin/options.py
M django/contrib/admin/templates/admin/change_form.html
M django/contrib/admin/templates/admin/edit_inline/stacked.html
M django/contrib/admin/templates/admin/edit_inline/tabular.html
M django/contrib/admin/validation.py
M docs/ref/contrib/admin/index.txt
M docs/releases/1.7.txt
M tests/admin_views/admin.py
A tests/admin_views/fixtures/admin-views-restaurants.xml
M tests/admin_views/models.py
M tests/admin_views/tests.py
Log Message:
-----------
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.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/527024588ec71_297ff5d48882fb%40hookshot-fe4-pe1-prd.aws.github.net.mail.
For more options, visit https://groups.google.com/groups/opt_out.