From 1907427c16f2ac321ce9631289adae5f660729d4 Mon Sep 17 00:00:00 2001 From: Lucas Brandstaetter <lucas@brandstaetter.tech> Date: Sat, 16 Nov 2024 02:12:40 +0100 Subject: [PATCH] Fix public_speakers The `persons` variable is a list, not a set, so we should use `append` instead of `add`. Fixes #604 --- src/core/models/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/models/events.py b/src/core/models/events.py index 46cda3b3e..d0aa83e79 100644 --- a/src/core/models/events.py +++ b/src/core/models/events.py @@ -175,7 +175,7 @@ class Event(TaggedItemMixin, BackendMixin, ActivityLogMixin, models.Model): persons = [participant.participant for participant in self.participants.filter(is_public=True, role=EventParticipant.Role.SPEAKER)] if len(persons) == 0 and self.kind == Event.Kind.SELF_ORGANIZED and self.owner: - persons.add(self.owner) + persons.append(self.owner) return persons -- GitLab