Skip to content
Snippets Groups Projects
Commit e9c5be55 authored by Nadja Geisler's avatar Nadja Geisler :sunny:
Browse files

Merge branch 'feature-improve-special-attention' into 'main'

Improve view for AKs requiring special attention

See merge request !130
parents 1fe0d7e3 c88e6d2a
No related branches found
No related tags found
No related merge requests found
......@@ -78,14 +78,17 @@ class SpecialAttentionAKsAdminView(AdminViewMixin, DetailView):
aks_without_slots = []
for ak in aks:
if ak.wish and ak.akslot_set.count() > 0:
ak_wishes_with_slots.append(ak)
if not ak.wish and ak.akslot_set.count() == 0:
aks_without_slots.append(ak)
if ak.notes != "":
aks_with_comment.append(ak)
if ak.availabilities.count() == 0:
aks_without_availabilities.append(ak)
if ak.wish:
if ak.akslot_set.count() > 0:
ak_wishes_with_slots.append(ak)
else:
if ak.akslot_set.count() == 0:
aks_without_slots.append(ak)
if ak.availabilities.count() == 0:
aks_without_availabilities.append(ak)
context["aks_with_comment"] = aks_with_comment
context["ak_wishes_with_slots"] = ak_wishes_with_slots
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment