From d3215a6588a6e8c01367a3adb64054a6a0c9229c Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 29 Jan 2024 21:48:55 -0500 Subject: [PATCH] paperwork: Fix typo in dashboard --- paperwork/dashboard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paperwork/dashboard.py b/paperwork/dashboard.py index 50eb864..67f840f 100644 --- a/paperwork/dashboard.py +++ b/paperwork/dashboard.py @@ -24,7 +24,8 @@ class PaperworkDashboardFragment(dashboard.DashboardFragment): ) if self.request.user.is_superuser or ( - member is not None and Department.filter_by_shop_lead(member).exists() + member is not None + and Department.objects.filter_by_shop_lead(member).exists() ): links["Department Certifications"] = reverse( "paperwork:department_certifications"