From 656ceb510d535d0592cda7cc92bbe0e43561ea0c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 31 May 2020 16:32:49 +0100 Subject: added sentinel user --- ctrack/core/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctrack/core') diff --git a/ctrack/core/views.py b/ctrack/core/views.py index 4584612..c9465f1 100644 --- a/ctrack/core/views.py +++ b/ctrack/core/views.py @@ -10,7 +10,7 @@ def home_page(request): org = Organisation.objects.get( name=request.user.stakeholder.person.get_organisation_name() ) - irs = IncidentReport.objects.filter(organisation=org) + irs = IncidentReport.objects.filter(organisation__name=org) systems = org.applicablesystem_set.all() return render( request, -- cgit v1.2.3