Skip to content
Browse files

[1.0.X] Fixed #9268 -- Ensured that the next argument is passed on wh…

…en previewing comments. Thanks to leanmeandonothingmachine for the patch.

Merge of r11019 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d0a3b92 commit c19d10c1807339b3395fa013f79c93ca1422d079 @freakboy3742 freakboy3742 committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 django/contrib/comments/views/
3 django/contrib/comments/views/
@@ -37,6 +37,9 @@ def post_comment(request, next=None):
if not data.get('email', ''):
data["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")

0 comments on commit c19d10c

Please sign in to comment.
Something went wrong with that request. Please try again.