Django

Code

Changeset 8074

Show
Ignore:
Timestamp:
07/25/08 09:47:35 (4 months ago)
Author:
lukeplant
Message:

Standardised documentation of the Field help_text option and ModelAdmin?.fields 'description' option.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/admin.txt

    r8066 r8074  
    140140``description`` 
    141141    A string of optional extra text to be displayed at the top of each fieldset, 
    142     under the heading of the fieldset. It's used verbatim, so you can use any HTML 
    143     and you must escape any special HTML characters (such as ampersands) yourself. 
     142    under the heading of the fieldset.  
     143 
     144    Note that this value is *not* HTML-escaped when it's displayed in 
     145    the admin interface. This lets you include HTML if you so desire. 
     146    Alternatively you can use plain text and 
     147    ``django.utils.html.escape()`` to escape any HTML special 
     148    characters. 
    144149 
    145150``filter_horizontal`` 
  • django/trunk/docs/model-api.txt

    r8020 r8074  
    658658 
    659659        help_text="Please use the following format: <em>YYYY-MM-DD</em>." 
     660 
     661Alternatively you can use plain text and 
     662``django.utils.html.escape()`` to escape any HTML special characters. 
    660663 
    661664``primary_key``