mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #1997 -- Changed comments.py views to use relative URL for redirects. Thanks, phil@produxion.net
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -252,7 +252,7 @@ def post_comment(request):
|
|||||||
else:
|
else:
|
||||||
manipulator.do_html2python(new_data)
|
manipulator.do_html2python(new_data)
|
||||||
comment = manipulator.save(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:
|
else:
|
||||||
raise Http404, _("The comment form didn't provide either 'preview' or 'post'")
|
raise Http404, _("The comment form didn't provide either 'preview' or 'post'")
|
||||||
|
|
||||||
@@ -316,7 +316,7 @@ def post_free_comment(request):
|
|||||||
else:
|
else:
|
||||||
manipulator.do_html2python(new_data)
|
manipulator.do_html2python(new_data)
|
||||||
comment = manipulator.save(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:
|
else:
|
||||||
raise Http404, _("The comment form didn't provide either 'preview' or 'post'")
|
raise Http404, _("The comment form didn't provide either 'preview' or 'post'")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user