From b78ba8140c9b4b280b495ec7614f57598fd1f354 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Tue, 9 Jul 2024 13:24:02 +0200 Subject: [PATCH] Add the redirect to the provider portal again --- apps/accounts/views.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/accounts/views.py b/apps/accounts/views.py index 986bd534..481d3351 100644 --- a/apps/accounts/views.py +++ b/apps/accounts/views.py @@ -59,8 +59,18 @@ class DashboardView(TemplateView): + """ + This dashboard view was what people would see when signing into the admin. + We currently redirect to the provider portal home page as at present,we + only really logged in activity by users who work for the providers in our system. + """ template_name = "dashboard.html" + def get(self, request, *args, **kwargs): + return HttpResponseRedirect(reverse("provider_portal_home")) + + + class ProviderAutocompleteView(autocomplete.Select2QuerySetView): def get_queryset(self): # if a user is not authenticated don't show anything