aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/core/views.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-20 12:13:58 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-20 12:13:58 +0100
commit5f5a6598c43f7df744c0a9127dced97103136cfe (patch)
treeece77c95fc51f2cefca3e81fbcbfb79aba551e2d /ctrack/core/views.py
parent29b6b17e35730b3d2afd6ba17e3524f3f9b69c10 (diff)
added list of inspector names to home page
Diffstat (limited to '')
-rw-r--r--ctrack/core/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctrack/core/views.py b/ctrack/core/views.py
index 6482662..254fb86 100644
--- a/ctrack/core/views.py
+++ b/ctrack/core/views.py
@@ -1,3 +1,4 @@
+from django.contrib.auth import get_user_model
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
@@ -26,6 +27,7 @@ def home_page(request):
},
)
else:
+ caf_users = get_user_model().objects.all()
no_orgs = Organisation.objects.count()
no_people = Person.objects.count()
no_cafs = CAF.objects.count()
@@ -37,5 +39,6 @@ def home_page(request):
"no_cafs": no_cafs,
"no_essential_services": no_essential_services,
"no_systems": no_systems,
+ "caf_users": caf_users,
}
return render(request, "pages/home.html", context)