Opened 16 years ago

Closed 16 years ago

#8226 closed (fixed)

django/contrib/auth/ UnicodeDecodeError. Permissions selection widget not shown.

Reported by: Nils Fredrik Gjerull Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords: unicode auth permission
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The "permission selection" widget was not shown in the "change user" form in the admin interface.

I have unicode characters in some of my models' verbose_name attribute and this triggered a bug in django/contrib/auth/ According to what i read here you have to call unicode explicitly if you use unicode string with placeholders (e.g. u'%s' % unicode(foo)). This is not done in the Permission model.

Attachments (1)

auth_permission_unicode.diff (713 bytes ) - added by Nils Fredrik Gjerull 16 years ago.

Download all attachments as: .zip

Change History (3)

by Nils Fredrik Gjerull, 16 years ago

comment:1 by Nils Fredrik Gjerull, 16 years ago

Forgot to mention that this only applies to python 2.3.

comment:2 by Gary Wilson, 16 years ago

Resolution: fixed
Status: newclosed

(In [8302]) Fixed #8226 -- Fixed a Python 2.3 incompatibility in a unicode string substitution, thanks nfg.

Note: See TracTickets for help on using tickets.
Back to Top