mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #25135 -- Removed support for the contrib.admin allow_tags attribute.
Per deprecation timeline.
This commit is contained in:
parent
7510b872e7
commit
d67a46e104
7 changed files with 7 additions and 80 deletions
|
@ -633,14 +633,6 @@ subclass::
|
|||
class PersonAdmin(admin.ModelAdmin):
|
||||
list_display = ('first_name', 'last_name', 'colored_name')
|
||||
|
||||
.. deprecated:: 1.9
|
||||
|
||||
In older versions, you could add an ``allow_tags`` attribute to the
|
||||
method to prevent auto-escaping. This attribute is deprecated as it's
|
||||
safer to use :func:`~django.utils.html.format_html`,
|
||||
:func:`~django.utils.html.format_html_join`, or
|
||||
:func:`~django.utils.safestring.mark_safe` instead.
|
||||
|
||||
* As some examples have already demonstrated, when using a callable, a
|
||||
model method, or a ``ModelAdmin`` method, you can customize the column's
|
||||
title by adding a ``short_description`` attribute to the callable.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue