Fixed #310 -- thanks, mordaha

git-svn-id: http://code.djangoproject.com/svn/django/trunk@492 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-08-12 14:19:34 +00:00
parent 199aa88ffb
commit b149fc3671
1 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ def create_object(request, app_label, module_name, template_name=None,
the form wrapper for the object the form wrapper for the object
""" """
if login_required and request.user.is_anonymous(): 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) mod = models.get_module(app_label, module_name)
manipulator = mod.AddManipulator() 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 the original object being edited
""" """
if login_required and request.user.is_anonymous(): 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) 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 the original object being deleted
""" """
if login_required and request.user.is_anonymous(): 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) mod = models.get_module(app_label, module_name)