diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 230682fe17..773c00fb8f 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -249,7 +249,7 @@ class ModelAdmin(object): c = template.RequestContext(request, { 'title': _('Add %s') % opts.verbose_name, - 'form': form, + 'oldform': form, 'is_popup': request.REQUEST.has_key('_popup'), 'show_delete': False, }) @@ -348,7 +348,7 @@ class ModelAdmin(object): c = template.RequestContext(request, { 'title': _('Change %s') % opts.verbose_name, - 'form': form, + 'oldform': form, 'object_id': object_id, 'original': manipulator.original_object, 'is_popup': request.REQUEST.has_key('_popup'), diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html index cfe2fd9998..13d862a9f7 100644 --- a/django/contrib/admin/templates/admin/change_form.html +++ b/django/contrib/admin/templates/admin/change_form.html @@ -34,9 +34,9 @@
- {% blocktrans count form.error_dict.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} + {% blocktrans count oldform.error_dict.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
{% endif %} {% for bound_field_set in bound_field_sets %} @@ -55,9 +55,9 @@ {% if change %} {% if ordered_objects %}