core: remove redundant views/forms

This commit is contained in:
Jens Langhammer
2020-05-11 00:49:48 +02:00
parent 5b2bf7519a
commit 69120da45c
12 changed files with 43 additions and 138 deletions

View File

@ -44,7 +44,7 @@ INTERNAL_IPS = ["127.0.0.1"]
ALLOWED_HOSTS = ["*"]
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
LOGIN_URL = "passbook_core:auth-login"
LOGIN_URL = "passbook_flows:default-auth"
# CSRF_FAILURE_VIEW = 'passbook.core.views.errors.CSRFErrorView.as_view'
# Custom user model

View File

@ -11,7 +11,7 @@ from passbook.root.monitoring import MetricsView
LOGGER = get_logger()
admin.autodiscover()
admin.site.login = RedirectView.as_view(pattern_name="passbook_core:auth-login")
admin.site.login = RedirectView.as_view(pattern_name="passbook_flows:default-auth")
handler400 = error.BadRequestView.as_view()
handler403 = error.ForbiddenView.as_view()