From 186734ad9d3a4e00a12b3068a0d8be7be171a0bd Mon Sep 17 00:00:00 2001 From: Raz Date: Wed, 15 Jan 2025 14:59:22 +0100 Subject: [PATCH] clean up and add clear message when can not unregister --- padelclub_backend/settings.py | 1 - tournaments/services/tournament_unregistration.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/padelclub_backend/settings.py b/padelclub_backend/settings.py index 8f46d66..ff1d1fc 100644 --- a/padelclub_backend/settings.py +++ b/padelclub_backend/settings.py @@ -161,4 +161,3 @@ CSRF_COOKIE_HTTPONLY = False # needed for AJAX requests CSRF_USE_SESSIONS = False # store CSRF token in cookie instead of session CSRF_COOKIE_SAMESITE = 'Lax' # or 'Strict' for more security LOGIN_URL = 'login' -PASSWORD_CHANGE_REDIRECT_URL = 'profile' # Redirect back to profile after password change diff --git a/tournaments/services/tournament_unregistration.py b/tournaments/services/tournament_unregistration.py index 880c2f0..3013186 100644 --- a/tournaments/services/tournament_unregistration.py +++ b/tournaments/services/tournament_unregistration.py @@ -13,7 +13,7 @@ class TournamentUnregistrationService: def can_unregister(self): if not self.tournament.is_unregistration_possible(): - messages.error(self.request, "Le désistement n'est plus possible pour ce tournoi.") + messages.error(self.request, "Le désistement n'est plus possible pour ce tournoi. Si vous souhaitez vous désinscrire, veuillez contacter le juge-arbitre.") return False if not self.request.user.licence_id: