Skip to content

Commit

Permalink
Fixed a regression in the user admin page introduced in a92e7f3.
Browse files Browse the repository at this point in the history
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
apollo13 committed Jul 7, 2012
1 parent 8dafd04 commit 52a9e15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django/contrib/auth/forms.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from django import forms
from django.forms.util import flatatt
from django.template import loader
Expand Down

0 comments on commit 52a9e15

Please sign in to comment.