Commit dc5bbef4 authored by fred's avatar fred
Browse files

refer to confirmation page by name

parent 083fe8df
......@@ -30,8 +30,7 @@ from .models import Subscriber, Newsletter
class SubscribeView(CreateView):
form_class = SubscribeForm
model = Subscriber
success_url = 'thanks'
success_url = reverse_lazy('newsletter-thanks')
subscribe = csrf_exempt(SubscribeView.as_view())
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