Opened 16 years ago
Closed 16 years ago
#8226 closed (fixed)
django/contrib/auth/models.py 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 |
Description
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/models.py. 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)
Change History (3)
by , 16 years ago
Attachment: | auth_permission_unicode.diff added |
---|
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Forgot to mention that this only applies to python 2.3.