Code

Ticket #4991: contrib.diff

File contrib.diff, 1.4 KB (added by Simon G. <dev@…>, 7 years ago)
Line 
1Index: django/contrib/admin/templates/admin/field_line.html
2===================================================================
3--- django/contrib/admin/templates/admin/field_line.html        (revision 5776)
4+++ django/contrib/admin/templates/admin/field_line.html        (working copy)
5@@ -5,6 +5,6 @@
6   {% if bound_field.has_label_first %}{% field_label bound_field %}{% endif %}
7   {% field_widget bound_field %}
8   {% if not bound_field.has_label_first %}{% field_label bound_field %}{% endif %}
9-  {% if bound_field.field.help_text %}<p class="help">{{ bound_field.field.help_text }}</p>{% endif %}
10+  {% if bound_field.field.help_text %}<p class="help">{{ bound_field.field.help_text|escape }}</p>{% endif %}
11 {% endfor %}
12 </div>
13Index: django/contrib/admin/templates/admin_doc/model_detail.html
14===================================================================
15--- django/contrib/admin/templates/admin_doc/model_detail.html  (revision 5776)
16+++ django/contrib/admin/templates/admin_doc/model_detail.html  (working copy)
17@@ -35,7 +35,7 @@
18 <tr>
19     <td>{{ field.name }}</td>
20     <td>{{ field.data_type }}</td>
21-    <td>{% if field.verbose %}{{ field.verbose }}{% endif %}{% if field.help_text %} - {{ field.help_text }}{% endif %}</td>
22+    <td>{% if field.verbose %}{{ field.verbose }}{% endif %}{% if field.help_text %} - {{ field.help_text|escape }}{% endif %}</td>
23 </tr>
24 {% endfor %}
25 </tbody>