Ticket #10600: admin-options-trans.diff

File admin-options-trans.diff, 862 bytes (added by Jarek Zgoda, 16 years ago)

patch for contrib/admin/options.py with fixed msgid

  • django/contrib/admin/options.py

     
    495495                    obj_display = force_unicode(obj)
    496496                    self.log_deletion(request, obj, obj_display)
    497497                queryset.delete()
    498                 self.message_user(request, _("Successfully deleted %d %s.") % (
    499                     n, model_ngettext(self.opts, n)
    500                 ))
     498                self.message_user(request,
     499                    _("Successfully deleted %(num)d %(obj)s.") % \
     500                        {'num': n,
     501                        'obj': model_ngettext(self.opts, n)}
     502                )
    501503            # Return None to display the change list page again.
    502504            return None
    503505
Back to Top