Ticket #4359: unicode-escape-help-text.diff

File unicode-escape-help-text.diff, 1.9 KB (added by anonymous, 17 years ago)
  • 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|escape %}<p class="help">{{ bound_field.field.help_text|escape }}</p>{% endif %}
    99{% endfor %}
    1010</div>
  • contrib/admin/templates/admin/auth/user/add_form.html

     
    1010<div class="form-row">
    1111  {{ form.username.html_error_list }}
    1212  <label for="id_username" class="required">{% trans 'Username' %}:</label> {{ form.username }}
    13   <p class="help">{{ username_help_text }}</p>
     13  <p class="help">{{ username_help_text|escape }}</p>
    1414</div>
    1515
    1616<div class="form-row">
  • 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|escape %} - {{ field.help_text|escape }}{% endif %}</td>
    3939</tr>
    4040{% endfor %}
    4141</tbody>
Back to Top