mirror of
https://github.com/ae-utbm/sith.git
synced 2026-05-14 04:58:06 +00:00
feat: club link management in club edit view
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user