Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #310 -- thanks, mordaha

git-svn-id: http://code.djangoproject.com/svn/django/trunk@492 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b149fc367178d90b757e8711a218e0ca54c1c88f 1 parent 199aa88
@jacobian jacobian authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/views/generic/create_update.py
View
6 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)
Please sign in to comment.
Something went wrong with that request. Please try again.