Compare commits

...

2 Commits

2 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,9 @@ class MemberCertificationListView(ListView):
@login_required
def department_certifications(request):
if request.user.is_superuser:
departments = Department.prefetch_related("shop_lead_flag__members").all()
departments = Department.objects.prefetch_related(
"shop_lead_flag__members"
).all()
elif member := Member.from_user(request.user) is not None:
departments = Department.objects.filter_by_shop_lead(member)
else:

2
pdm.toml Normal file
View File

@ -0,0 +1,2 @@
[strategy]
save = "compatible"