Skip to content

Commit

Permalink
fix(backend): use append method when appending to a list
Browse files Browse the repository at this point in the history
  • Loading branch information
Adibov authored and azare242 committed Nov 30, 2023
1 parent 4fea9d9 commit ee2fcde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/backend_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def participants(self):
for participant in WorkshopRegistration.objects.filter(workshop=self,
status=
WorkshopRegistration.StatusChoices.PURCHASED):
participants += participant.user
participants.append(participant.user)
return participants

@property
Expand Down Expand Up @@ -210,7 +210,7 @@ def participants(self):
for participant in PresentationParticipation.objects.filter(presentation=self,
status=
PresentationParticipation.StatusChoices.PURCHASED):
participants += participant.user
participants.append(participant.user)
return participants

@property
Expand Down

0 comments on commit ee2fcde

Please sign in to comment.