feat: club link management in club edit view

This commit is contained in:
imperosol committed 2026-05-20 12:25:26 +02:00
1 parent 4d1019c955
commit eaf90efd5c
5 files changed
+161 -10

No files matched your search

+7 -1
View File
@@ -21,7 +21,13 @@ def test_club_board_member_cannot_edit_club_properties(client: Client):
client.force_login(user)
res = client.post(
reverse("club:club_edit", kwargs={"club_id": club.id}),
{"name": "new name", "is_active": False, "address": "new address"},
{
"name": "new name",
"is_active": False,
"address": "new address",
"link-TOTAL_FORMS": 0,
"link-INITIAL_FORMS": 0,
},
)
# The request should success,
# but admin-only fields shouldn't be taken into account