From a10773bb37aef4200c339a28416400088c16d896 Mon Sep 17 00:00:00 2001 From: imperosol Date: Thu, 21 May 2026 22:50:56 +0200 Subject: [PATCH] fix: ClubRole migration --- club/migrations/0015_clubrole_alter_membership_role.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/club/migrations/0015_clubrole_alter_membership_role.py b/club/migrations/0015_clubrole_alter_membership_role.py index 9c3e5a8e..82279f65 100644 --- a/club/migrations/0015_clubrole_alter_membership_role.py +++ b/club/migrations/0015_clubrole_alter_membership_role.py @@ -33,7 +33,7 @@ def migrate_roles(apps: StateApps, schema_editor): club_id=club_id, order=max(SITH_CLUB_ROLES) - role, ) - updates.append(When(role=role, then=new_role.id)) + updates.append(When(club_id=club_id, role=role, then=new_role.id)) # all updates must happen at the same time # otherwise, the 10 first created ClubRole would be # re-modified after their initial creation, and it would