Moved where active status is displayed.

Cleaned up logout redirects
Added suburbs admin page back. Wasn't able to create new suburbs
Made active status check to any traveller save function
This commit is contained in:
John Mullins committed 2023-12-22 16:50:30 +11:00
1 parent f73b08e989
commit d74290036e
7 files changed
+24 -30

No files matched your search

+2 -1
View File
@@ -67,7 +67,8 @@ MIDDLEWARE = [
if "AZURE_CLIENT_ID" in os.environ:
AUTHENTICATION_BACKENDS = ("custom_user.backends.AzureBackend",)
MIDDLEWARE.append('custom_user.middleware.AzureMiddleware')
LOGIN_URL = "/azure_auth/login"
LOGIN_URL = "/auth/login"
LOGOUT_REDIRECT_URL = "/auth/logout"
AZURE_AUTH = {
"CLIENT_ID": os.environ.get('AZURE_CLIENT_ID'),
"CLIENT_SECRET": os.environ.get('AZURE_CLIENT_SECRET'),
+1 -3
View File
@@ -14,7 +14,6 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from azure_auth.views import azure_auth_logout
from django.contrib import admin
from django.urls import path, include
@@ -22,8 +21,7 @@ admin.site.site_header = "Bus Portal Admin"
urlpatterns = [
path('report/', include("coord.urls")),
path('logout/', azure_auth_logout),
path('auth/', include("azure_auth.urls"),),
path('auth/', include("custom_user.urls")),
path('settings/', include('coord.urls_settings')),
path('', admin.site.urls),
]