1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #27386 -- Wrapped admin's readonly fields in <div> rather than <p>.

This commit is contained in:
Jacob Rief
2016-11-05 12:47:12 +01:00
committed by Tim Graham
parent a17fe73d2d
commit b3162cab94
5 changed files with 24 additions and 12 deletions

View File

@@ -501,6 +501,15 @@ This works similar to ``settings.TIME_ZONE = None`` except that it also sets
if there's a use case where you find you can't adapt your code to set a
``TIME_ZONE``.
HTML changes in admin templates
-------------------------------
``<p class="help">`` is replaced with a ``<div>`` tag to allow including lists
inside help text.
Read-only fields are wrapped in ``<div class="readonly">...</div>`` instead of
``<p>...</p>`` to allow any kind of HTML as the field's content.
Miscellaneous
-------------