0001-misc-clean-dead-imports-39745.patch
src/authentic2/manager/user_views.py | ||
---|---|---|
29 | 29 |
from django.contrib.auth import get_user_model, REDIRECT_FIELD_NAME |
30 | 30 |
from django.contrib.contenttypes.models import ContentType |
31 | 31 |
from django.contrib import messages |
32 |
from django.views.generic import FormView, TemplateView, RedirectView, DetailView
|
|
32 |
from django.views.generic import FormView, TemplateView, DetailView |
|
33 | 33 |
from django.http import Http404, FileResponse |
34 | 34 | |
35 | 35 |
import tablib |
36 | 36 | |
37 | 37 |
from authentic2.models import Attribute, AttributeValue, PasswordReset |
38 |
from authentic2.utils import build_su_url, send_password_reset_mail, redirect, select_next_url, make_url
|
|
38 |
from authentic2.utils import send_password_reset_mail, redirect, select_next_url, make_url, switch_user
|
|
39 | 39 |
from authentic2.a2_rbac.utils import get_default_ou |
40 | 40 |
from authentic2 import hooks |
41 | 41 |
from django_rbac.utils import get_role_model, get_role_parenting_model, get_ou_model |
src/authentic2/utils/__init__.py | ||
---|---|---|
31 | 31 | |
32 | 32 |
from django.conf import settings |
33 | 33 |
from django.http import HttpResponseRedirect, HttpResponse |
34 |
from django.core.exceptions import ImproperlyConfigured, PermissionDenied
|
|
34 |
from django.core.exceptions import ImproperlyConfigured |
|
35 | 35 |
from django.http.request import QueryDict |
36 |
from django.contrib.auth import (REDIRECT_FIELD_NAME, login as auth_login, SESSION_KEY,
|
|
37 |
HASH_SESSION_KEY, BACKEND_SESSION_KEY, authenticate as dj_authenticate,
|
|
36 |
from django.contrib.auth import (REDIRECT_FIELD_NAME, login as auth_login, |
|
37 |
authenticate as dj_authenticate, |
|
38 | 38 |
get_user_model) |
39 | 39 |
from django import forms |
40 | 40 |
from django.forms.utils import ErrorList, to_current_timezone |
... | ... | |
49 | 49 |
from django.core.cache import cache |
50 | 50 |
from django.core.urlresolvers import reverse |
51 | 51 |
from django.utils.formats import localize |
52 |
from django.contrib import messages |
|
53 |
from django.utils.functional import empty, allow_lazy |
|
52 |
from django.utils.functional import allow_lazy |
|
54 | 53 |
from django.utils.http import urlsafe_base64_encode |
55 | 54 |
from django.utils.encoding import iri_to_uri, force_bytes, uri_to_iri |
56 | 55 |
from django.shortcuts import render |
src/authentic2/views.py | ||
---|---|---|
48 | 48 |
from django.http import Http404 |
49 | 49 |
from django.utils.http import urlsafe_base64_decode |
50 | 50 |
from django.views.generic.edit import CreateView |
51 |
from django.forms import CharField, Form |
|
52 |
from django.core.urlresolvers import reverse_lazy |
|
51 |
from django.forms import CharField |
|
53 | 52 |
from django.http import HttpResponseBadRequest |
54 | 53 |
from django.template import loader |
55 | 54 | |
56 |
- |