Commit 67cf27d4 authored by Adrián Ribao's avatar Adrián Ribao
Browse files

ACTIVATION_REDIRECT settings

parent 6bed7058
......@@ -99,6 +99,7 @@ class Activate(TemplateView):
def get_context_data(self, **kwargs):
context = super(Activate, self).get_context_data(**kwargs)
context['ACTIVATION_REDIRECT'] = settings.LOGIN_REDIRECT_URL
redirect = getattr(settings, 'ACTIVATION_REDIRECT', settings.LOGIN_REDIRECT_URL)
context['ACTIVATION_REDIRECT'] = redirect
return context
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