From b149fc367178d90b757e8711a218e0ca54c1c88f Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Fri, 12 Aug 2005 14:19:34 +0000 Subject: [PATCH] Fixed #310 -- thanks, mordaha git-svn-id: http://code.djangoproject.com/svn/django/trunk@492 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/generic/create_update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/views/generic/create_update.py b/django/views/generic/create_update.py index f90891f0da0..d1775d61e94 100644 --- a/django/views/generic/create_update.py +++ b/django/views/generic/create_update.py @@ -18,7 +18,7 @@ def create_object(request, app_label, module_name, template_name=None, the form wrapper for the object """ if login_required and request.user.is_anonymous(): - return redirect_to_login(request) + return redirect_to_login(request.path) mod = models.get_module(app_label, module_name) manipulator = mod.AddManipulator() @@ -78,7 +78,7 @@ def update_object(request, app_label, module_name, object_id=None, slug=None, the original object being edited """ if login_required and request.user.is_anonymous(): - return redirect_to_login(request) + return redirect_to_login(request.path) mod = models.get_module(app_label, module_name) @@ -153,7 +153,7 @@ def delete_object(request, app_label, module_name, post_delete_redirect, the original object being deleted """ if login_required and request.user.is_anonymous(): - return redirect_to_login(request) + return redirect_to_login(request.path) mod = models.get_module(app_label, module_name)