Skip to content
Snippets Groups Projects
Commit 1907427c authored by Roang's avatar Roang
Browse files

Fix public_speakers

The `persons` variable is a list, not a set, so we should use `append`
instead of `add`.

Fixes #604
parent a4090d98
No related branches found
No related tags found
No related merge requests found
...@@ -175,7 +175,7 @@ class Event(TaggedItemMixin, BackendMixin, ActivityLogMixin, models.Model): ...@@ -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)] 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: if len(persons) == 0 and self.kind == Event.Kind.SELF_ORGANIZED and self.owner:
persons.add(self.owner) persons.append(self.owner)
return persons return persons
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment