Ticket #6109: description_autoescape.diff

File description_autoescape.diff, 880 bytes (added by SomeGuy <SomeGuy@…>, 17 years ago)
  • django/contrib/admin/templates/admin/change_form.html

     
    3434{% for bound_field_set in bound_field_sets %}
    3535   <fieldset class="module aligned {{ bound_field_set.classes }}">
    3636    {% if bound_field_set.name %}<h2>{{ bound_field_set.name }}</h2>{% endif %}
    37     {% if bound_field_set.description %}<div class="description">{{ bound_field_set.description }}</div>{% endif %}
     37    {% if bound_field_set.description %}<div class="description">{{ bound_field_set.description|safe }}</div>{% endif %}
    3838    {% for bound_field_line in bound_field_set %}
    3939        {% admin_field_line bound_field_line %}
    4040        {% for bound_field in bound_field_line %}
Back to Top