mirror of
https://github.com/django/django.git
synced 2025-07-05 10:19:20 +00:00
Fix #844
git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@1294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a44191565f
commit
58f4007b55
@ -486,7 +486,7 @@ def change_stage(request, app_label, module_name, object_id):
|
|||||||
if not request.user.has_perm(app_label + '.' + opts.get_change_permission()):
|
if not request.user.has_perm(app_label + '.' + opts.get_change_permission()):
|
||||||
raise PermissionDenied
|
raise PermissionDenied
|
||||||
if request.POST and request.POST.has_key("_saveasnew"):
|
if request.POST and request.POST.has_key("_saveasnew"):
|
||||||
return add_stage_new(request, app_label, module_name, form_url='../add/')
|
return add_stage(request, app_label, module_name, form_url='../add/')
|
||||||
try:
|
try:
|
||||||
manipulator = mod.ChangeManipulator(object_id)
|
manipulator = mod.ChangeManipulator(object_id)
|
||||||
except ObjectDoesNotExist:
|
except ObjectDoesNotExist:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user