Ticket #14529: 14529-save-messages-for-proxy-models.diff
File 14529-save-messages-for-proxy-models.diff, 597 bytes (added by , 14 years ago) |
---|
-
django/contrib/admin/options.py
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index e6a1fd2..1d7902e 100644
a b class ModelAdmin(BaseModelAdmin): 669 669 Determines the HttpResponse for the change_view stage. 670 670 """ 671 671 opts = obj._meta 672 while opts.proxy: 673 opts = opts.proxy_for_model._meta 672 674 pk_value = obj._get_pk_val() 673 675 674 676 msg = _('The %(name)s "%(obj)s" was changed successfully.') % {'name': force_unicode(opts.verbose_name), 'obj': force_unicode(obj)}