django-allauth-ens/allauth_ens/views.py
Aurélien Delobelle fe21f9c6af Eww, hard to sum up…
- Update django-allauth-cas to the last version.
- Add docs (README, example/README).
- Add tests for Clipper provider.
- Add tests to check templates do not contain syntax error.
- Add the last missing templates to override all allauth's displayable
  templates.
- Improve stylesheets.
2018-01-16 16:57:18 +01:00

25 lines
522 B
Python

import django
from django.views.generic import RedirectView
if django.VERSION >= (1, 10):
from django.urls import reverse_lazy
else:
from django.core.urlresolvers import reverse_lazy
class CaptureLogin(RedirectView):
url = reverse_lazy('account_login')
query_string = True
permanent = False
capture_login = CaptureLogin.as_view()
class CaptureLogout(RedirectView):
url = reverse_lazy('account_logout')
query_string = True
permanent = False
capture_logout = CaptureLogout.as_view()