diff --git a/AKModel/views/status.py b/AKModel/views/status.py index 11173d972caf64c8b7a4e35c531dd9845f2eab3e..11b62083ab7683a5eead25f5ecba4117df5081b9 100644 --- a/AKModel/views/status.py +++ b/AKModel/views/status.py @@ -122,14 +122,15 @@ class EventAKsWidget(TemplateStatusWidget): "text": _("AKs requiring special attention"), "url": reverse_lazy("admin:special-attention", kwargs={"slug": context["event"].slug}), }, - { + ]) + if context["event"].ak_set.count() > 0: + actions.append({ "text": _("Enter Interest"), "url": reverse_lazy("admin:enter-interest", kwargs={"event_slug": context["event"].slug, "pk": context["event"].ak_set.all().first().pk} ), - }, - ]) + }) actions.extend([ { "text": _("Edit Default Slots"),