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"