Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a regression in the user admin page introduced in a92e7f3.

a92e7f3 switched most of the internal stuff
to format_html. Using format_html in the `render` method of
`ReadOnlyPasswordHashWidget` caused it to generate `SafeString` instances.
Later these safe strings where returned from `BoundField.__unicode__` which
caused force_unicode to loose the "safe" information. This commit fixes that by
ensuring that the render method returns `SafeUnicode` instead of `SafeString`.
  • Loading branch information...
commit 52a9e15794ac050afb17837a34407722e7249854 1 parent 8dafd04
Florian Apolloner authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  django/contrib/auth/
2  django/contrib/auth/
... ...
@@ -1,3 +1,5 @@
+from __future__ import unicode_literals
1 3
 from django import forms
2 4
 from django.forms.util import flatatt
3 5
 from django.template import loader

0 notes on commit 52a9e15

Please sign in to comment.
Something went wrong with that request. Please try again.