Commit b381e282 authored by fred's avatar fred
Browse files

enable csrf on subscribe view

parent dc5bbef4
......@@ -31,7 +31,7 @@ class SubscribeView(CreateView):
form_class = SubscribeForm
model = Subscriber
success_url = reverse_lazy('newsletter-thanks')
subscribe = csrf_exempt(SubscribeView.as_view())
subscribe = SubscribeView.as_view()
class ThanksView(TemplateView):
Markdown is supported
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