use election role name for membership description

This commit is contained in:
imperosol
2026-06-19 14:06:52 +02:00
parent 0ba001ccda
commit 8f15facd8f
2 changed files with 18 additions and 0 deletions
+4
View File
@@ -251,8 +251,12 @@ class ApplyElectionResultForm(forms.Form):
user_id=c.user_id,
club_id=c.role.club_role.club_id,
role=c.role.club_role,
description=(
c.role.title if c.role.title != c.role.club_role.name else ""
),
)
for c in candidates
]
Membership.objects.bulk_create(memberships)
Membership._add_club_groups(memberships)
return memberships