#12966: Unicode pluralnames doesn`t work well with InlineAdmin
----------------------------------+-----------------------------------------
Reporter: IsakovAN | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: 1.1
Keywords: unicode | Stage: Unreviewed
Has_patch: 1 |
----------------------------------+-----------------------------------------
contrib/admin/options.py:
change_message.append(_('Added %(name)s
"%(object)s".')
% {'name':
added_object._meta.verbose_name,
'object':
force_unicode(added_object)})
for changed_object, changed_fields in
formset.changed_objects:
change_message.append(_('Changed %(list)s for %(name)s
"%(object)s".')
% {'list':
get_text_list(changed_fields, _('and')),
'name':
changed_object._meta.verbose_name,
'object':
force_unicode(changed_object)})
for deleted_object in formset.deleted_objects:
change_message.append(_('Deleted %(name)s
"%(object)s".')
% {'name':
deleted_object._meta.verbose_name,
'object':
force_unicode(deleted_object)})
Inline admin caught exception OrdinalNotInRange if
XXX_object._meta.verbose_name is UTF-8 text. I have fix that wrapping
XXX_object._meta.verbose_name with force_unicode function:
'name': force_unicode(changed_object._meta.verbose_name),
--
Ticket URL: <http://code.djangoproject.com/ticket/12966>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.