Author: adrian
Date: 2006-05-25 23:06:46 -0500 (Thu, 25 May 2006)
New Revision: 2981
Modified:
django/trunk/django/contrib/comments/views/comments.py
Log:
Fixed #1997 -- Changed comments.py views to use relative URL for redirects.
Thanks, [EMAIL PROTECTED]
Modified: django/trunk/django/contrib/comments/views/comments.py
===================================================================
--- django/trunk/django/contrib/comments/views/comments.py 2006-05-26
04:05:02 UTC (rev 2980)
+++ django/trunk/django/contrib/comments/views/comments.py 2006-05-26
04:06:46 UTC (rev 2981)
@@ -252,7 +252,7 @@
else:
manipulator.do_html2python(new_data)
comment = manipulator.save(new_data)
- return HttpResponseRedirect("/comments/posted/?c=%s:%s" %
(content_type_id, object_id))
+ return HttpResponseRedirect("../posted/?c=%s:%s" % (content_type_id,
object_id))
else:
raise Http404, _("The comment form didn't provide either 'preview' or
'post'")
@@ -316,7 +316,7 @@
else:
manipulator.do_html2python(new_data)
comment = manipulator.save(new_data)
- return HttpResponseRedirect("/comments/posted/?c=%s:%s" %
(content_type_id, object_id))
+ return HttpResponseRedirect("../posted/?c=%s:%s" % (content_type_id,
object_id))
else:
raise Http404, _("The comment form didn't provide either 'preview' or
'post'")
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---