From e16067129c426e4209dcd781c9064acd25bac510 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Tue, 3 Sep 2024 11:44:14 +0200 Subject: [PATCH] make sure we only count submissions for current event --- pretalx_halfnarp/views/organiser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pretalx_halfnarp/views/organiser.py b/pretalx_halfnarp/views/organiser.py index 2f79b6b..483acec 100644 --- a/pretalx_halfnarp/views/organiser.py +++ b/pretalx_halfnarp/views/organiser.py @@ -16,7 +16,7 @@ class OrganiserView(EventPermissionRequired, FormView): @context def num_preferences(self): - return Preference.objects.count() + return Preference.objects.filter(event=self.request.event).count() @context def most_preferred_submissions(self):