Ticket #4991: contrib.diff

File contrib.diff, 1.4 KB (added by Simon G. <dev@…>, 17 years ago)
  • django/contrib/admin/templates/admin/field_line.html

     
    55  {% if bound_field.has_label_first %}{% field_label bound_field %}{% endif %}
    66  {% field_widget bound_field %}
    77  {% if not bound_field.has_label_first %}{% field_label bound_field %}{% endif %}
    8   {% if bound_field.field.help_text %}<p class="help">{{ bound_field.field.help_text }}</p>{% endif %}
     8  {% if bound_field.field.help_text %}<p class="help">{{ bound_field.field.help_text|escape }}</p>{% endif %}
    99{% endfor %}
    1010</div>
  • django/contrib/admin/templates/admin_doc/model_detail.html

     
    3535<tr>
    3636    <td>{{ field.name }}</td>
    3737    <td>{{ field.data_type }}</td>
    38     <td>{% if field.verbose %}{{ field.verbose }}{% endif %}{% if field.help_text %} - {{ field.help_text }}{% endif %}</td>
     38    <td>{% if field.verbose %}{{ field.verbose }}{% endif %}{% if field.help_text %} - {{ field.help_text|escape }}{% endif %}</td>
    3939</tr>
    4040{% endfor %}
    4141</tbody>
Back to Top