Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #9268 -- Ensured that the next argument is passed on when previ…

…ewing comments. Thanks to leanmeandonothingmachine for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f908eded21919cfbbbd1009c63f1cffa316ea2b2 1 parent 191203b
@freakboy3742 freakboy3742 authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  django/contrib/comments/views/comments.py
View
3  django/contrib/comments/views/comments.py
@@ -37,6 +37,9 @@ def post_comment(request, next=None):
if not data.get('email', ''):
data["email"] = request.user.email
+ # Check to see if the POST data overrides the view's next argument.
+ next = data.get("next", next)
+
# Look up the object we're trying to comment about
ctype = data.get("content_type")
object_pk = data.get("object_pk")
Please sign in to comment.
Something went wrong with that request. Please try again.