From 70a3a410d53146edd5bc2fda5d393cc94cf036f5 Mon Sep 17 00:00:00 2001 From: Joshua Carp Date: Thu, 28 Apr 2016 18:26:56 -0400 Subject: [PATCH] Redirect to preamble on confirm GET. --- regulations/views/comment.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regulations/views/comment.py b/regulations/views/comment.py index 64d6c1d42..cdb194b8e 100644 --- a/regulations/views/comment.py +++ b/regulations/views/comment.py @@ -8,6 +8,7 @@ from django.conf import settings from django.core.cache import caches from django.http import JsonResponse +from django.shortcuts import redirect from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_http_methods from django.template.response import TemplateResponse @@ -83,6 +84,9 @@ def preview_comment(request): class SubmitCommentView(View): + def get(self, request, doc_number): + return redirect('chrome_preamble', paragraphs=doc_number) + def post(self, request, doc_number): form_data = { key: value for key, value in request.POST.items()