1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 18:08:21 +02:00

fix update of club membership start/end date

This commit is contained in:
bleizi
2023-07-07 20:39:19 +02:00
parent 16f8a60a3f
commit 981c4d0300
3 changed files with 6 additions and 2 deletions

View File

@ -753,6 +753,10 @@ class ClubAddMemberView(ProtectQuerysetMixin, ProtectedCreateView):
club = old_membership.club
user = old_membership.user
# Update club membership date
if PermissionBackend.check_perm(self.request, "member.change_club_membership_start", club):
club.update_membership_dates()
form.instance.club = club
# Get form data