Skip to content

Commit

Permalink
Fix 500 on team password edition
Browse files Browse the repository at this point in the history
  • Loading branch information
KwikKill committed Dec 17, 2024
1 parent c1f052f commit 7e61ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions insalan/tournament/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,15 +585,15 @@ def get_fieldsets(self, request, obj=None):
def get_urls(self):
return [
path(
"<id>/password/",
"<team_id>/password/",
self.admin_site.admin_view(self.team_change_password),
name="auth_team_password_change",
),
] + super().get_urls()
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):
Expand Down

0 comments on commit 7e61ccc

Please sign in to comment.