Commit 5e84caa8 authored by Okhin's avatar Okhin
Browse files

We do not need csrf on non authenticated views

parent 4f9690bb
Pipeline #1058 passed with stage
in 10 minutes and 32 seconds
from django.views import generic
from django.views.decorators.csrf import csrf_exempt
from .forms import PositionForm
......@@ -15,6 +16,7 @@ class PositionFormMixin(generic.View):
position_form = None
position_created = False
def post(self, request, *args, **kwargs):
if 'position-representatives' in request.POST:
self.position_form = PositionForm(request.POST, prefix='position')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment