Ticket #8910: admin_options.diff
File admin_options.diff, 1.6 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/options.py
342 342 for added_object in formset.new_objects: 343 343 change_message.append(_('Added %(name)s "%(object)s".') 344 344 % {'name': added_object._meta.verbose_name, 345 'object': added_object})345 'object': force_unicode(added_object)}) 346 346 for changed_object, changed_fields in formset.changed_objects: 347 347 change_message.append(_('Changed %(list)s for %(name)s "%(object)s".') 348 348 % {'list': get_text_list(changed_fields, _('and')), 349 349 'name': changed_object._meta.verbose_name, 350 'object': changed_object})350 'object': force_unicode(changed_object)}) 351 351 for deleted_object in formset.deleted_objects: 352 352 change_message.append(_('Deleted %(name)s "%(object)s".') 353 353 % {'name': deleted_object._meta.verbose_name, 354 'object': deleted_object})354 'object': force_unicode(deleted_object)}) 355 355 change_message = ' '.join(change_message) 356 356 return change_message or _('No fields changed.') 357 357