mirror of
https://github.com/django/django.git
synced 2025-07-18 16:49:13 +00:00
[1.0.X] Fixed #9268 -- Ensured that the next argument is passed on when previewing comments. Thanks to leanmeandonothingmachine for the patch.
Merge of r11019 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@11020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d0a3b92e4b
commit
c19d10c180
@ -37,6 +37,9 @@ def post_comment(request, next=None):
|
|||||||
if not data.get('email', ''):
|
if not data.get('email', ''):
|
||||||
data["email"] = request.user.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
|
# Look up the object we're trying to comment about
|
||||||
ctype = data.get("content_type")
|
ctype = data.get("content_type")
|
||||||
object_pk = data.get("object_pk")
|
object_pk = data.get("object_pk")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user