Browse Source

Added safe template tag

Django's own password change template adds the safe template tag to the help text, otherwise the default gets displayed as '<ul><li>Your password can&#39;t be too similar to your other personal information.</li><li>...'
Jens Astrup 8 years ago
parent
commit
863c397a08
1 changed files with 2 additions and 2 deletions
  1. 2 2
      jet/templates/registration/password_change_form.html

+ 2 - 2
jet/templates/registration/password_change_form.html

@@ -33,7 +33,7 @@
                         {{ form.new_password1.errors }}
                         {{ form.new_password1.label_tag }} {{ form.new_password1 }}
                         {% if form.new_password1.help_text %}
-                            <p class="help">{{ form.new_password1.help_text }}</p>
+                            <p class="help">{{ form.new_password1.help_text|safe }}</p>
                         {% endif %}
                     </div>
 
@@ -41,7 +41,7 @@
                         {{ form.new_password2.errors }}
                         {{ form.new_password2.label_tag }} {{ form.new_password2 }}
                         {% if form.new_password2.help_text %}
-                            <p class="help">{{ form.new_password2.help_text }}</p>
+                            <p class="help">{{ form.new_password2.help_text|safe }}</p>
                         {% endif %}
                     </div>
                 </fieldset>