1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Added note to docs/model-api.txt about help_text not being escaped in the admin interface

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5816 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-08-06 05:33:18 +00:00
parent 3517550dac
commit d4623df463

View File

@ -624,6 +624,12 @@ Extra "help" text to be displayed under the field on the object's admin
form. It's useful for documentation even if your object doesn't have an
admin form.
Note that this value is *not* HTML-escaped when it's displayed in the admin
interface. This lets you include HTML in ``help_text`` if you so desire. For
example::
help_text="Please use the following format: <em>YYYY-MM-DD</em>."
``primary_key``
~~~~~~~~~~~~~~~