aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/core
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-05-31 16:32:49 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-05-31 16:32:49 +0100
commit656ceb510d535d0592cda7cc92bbe0e43561ea0c (patch)
tree4040be410d5c8b758ad96cf6aefe0dd2586d9aa6 /ctrack/core
parent5c8c748c50ac4f6603fccf03c5e8473c47638cf6 (diff)
added sentinel user
Diffstat (limited to 'ctrack/core')
-rw-r--r--ctrack/core/views.py2
1 files changed, 1 insertions, 1 deletions
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,