Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Redirect to preamble on confirm GET.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarp committed Apr 28, 2016
1 parent ee5e248 commit 70a3a41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regulations/views/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 70a3a41

Please sign in to comment.