mirror of
https://github.com/django/django.git
synced 2025-10-26 23:26:08 +00:00
newforms-admin: Renamed 'form' template variable to 'oldform' in add_view() and change_view(), in preparation for the newforms switch
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4365 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user