(self, request, *args, **kwargs)
| 22 | template_name = 'blog/article_detail.html' |
| 23 | |
| 24 | def get(self, request, *args, **kwargs): |
| 25 | article_id = self.kwargs['article_id'] |
| 26 | article = get_object_or_404(Article, pk=article_id) |
| 27 | url = article.get_absolute_url() |
| 28 | return HttpResponseRedirect(url + "#comments") |
| 29 | |
| 30 | def form_invalid(self, form): |
| 31 | article_id = self.kwargs['article_id'] |