1
0
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:
Adrian Holovaty
2007-01-20 06:32:08 +00:00
parent 846394d2e2
commit 5b5930f0df
4 changed files with 9 additions and 9 deletions

View File

@@ -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'),