Commit 8318db23 authored by fred's avatar fred

do not display confirmation page if already validated

parent 6881bb9c
...@@ -44,7 +44,7 @@ class ConfirmationView(TemplateView): ...@@ -44,7 +44,7 @@ class ConfirmationView(TemplateView):
def get_context_data(self, token, **kwargs): def get_context_data(self, token, **kwargs):
context = super(ConfirmationView, self).get_context_data(**kwargs) context = super(ConfirmationView, self).get_context_data(**kwargs)
subscriber = get_object_or_404(Subscriber, password=token, is_registered=None) subscriber = get_object_or_404(Subscriber, password=token, is_validated=False)
subscriber.is_validated = True subscriber.is_validated = True
subscriber.subscribe_in_mailman() subscriber.subscribe_in_mailman()
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