From 7e61ccc01fe066c1a22b0df6add732da0d03505d Mon Sep 17 00:00:00 2001 From: KwikKill Date: Tue, 17 Dec 2024 22:16:22 +0100 Subject: [PATCH] Fix 500 on team password edition --- insalan/tournament/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/insalan/tournament/admin.py b/insalan/tournament/admin.py index 759dfc4e..8a3da525 100644 --- a/insalan/tournament/admin.py +++ b/insalan/tournament/admin.py @@ -585,7 +585,7 @@ def get_fieldsets(self, request, obj=None): def get_urls(self): return [ path( - "/password/", + "/password/", self.admin_site.admin_view(self.team_change_password), name="auth_team_password_change", ), @@ -593,7 +593,7 @@ def get_urls(self): change_password_form = AdminPasswordChangeForm @sensitive_post_parameters_m - def team_change_password(self, request, team_id, form_url=""): + def team_change_password(self, request, team_id, form_url="", *args, **kwargs): """Change the password of a team""" team = Team.objects.get(pk=team_id) if not self.has_change_permission(request, team):