We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9c46e2 commit 276b1b0Copy full SHA for 276b1b0
1 file changed
feincms/content/comments/models.py
@@ -63,9 +63,12 @@ def process(self, request):
63
#if len(extra) > 0 and extra[0] == u"post-comment":
64
65
from django.contrib.comments.views.comments import post_comment
66
- r = post_comment(request)
67
- if not isinstance(r, HttpResponseRedirect):
68
- f = comments.get_form()(comment_page, data=request.POST)
+ r = post_comment(request, next=comment_page.get_absolute_url())
+
+ if isinstance(r, HttpResponseRedirect):
69
+ return r
70
71
+ f = comments.get_form()(comment_page, data=request.POST)
72
73
if f is None:
74
f = comments.get_form()(comment_page)
0 commit comments