Author: russellm
Date: 2009-06-17 08:01:40 -0500 (Wed, 17 Jun 2009)
New Revision: 11019

Modified:
   django/trunk/django/contrib/comments/views/comments.py
Log:
Fixed #9268 -- Ensured that the next argument is passed on when previewing 
comments. Thanks to leanmeandonothingmachine for the patch.

Modified: django/trunk/django/contrib/comments/views/comments.py
===================================================================
--- django/trunk/django/contrib/comments/views/comments.py      2009-06-17 
09:28:49 UTC (rev 11018)
+++ django/trunk/django/contrib/comments/views/comments.py      2009-06-17 
13:01:40 UTC (rev 11019)
@@ -37,6 +37,9 @@
         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")


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to