aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/core
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/core')
-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)