From ee2fcdeefef7e7171412b4adb671c82ab2c22faf Mon Sep 17 00:00:00 2001 From: Adibov Date: Thu, 30 Nov 2023 23:55:24 +0330 Subject: [PATCH] fix(backend): use append method when appending to a list --- backend/backend_api/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/backend_api/models.py b/backend/backend_api/models.py index 7a65713..e61ab37 100644 --- a/backend/backend_api/models.py +++ b/backend/backend_api/models.py @@ -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 @@ -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