django/contrib/auth/models.py UnicodeDecodeError. Permissions selection widget not shown.
|Reported by:||nfg||Owned by:||nobody|
|Severity:||Keywords:||unicode auth permission|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||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/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.