From d03cb78175ac76886bbf901e160d4f035e4b8caf Mon Sep 17 00:00:00 2001 From: Laurent Date: Sun, 13 Jul 2025 22:39:37 +0200 Subject: [PATCH] Improve clubs selection in the user admin --- tournaments/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tournaments/admin.py b/tournaments/admin.py index e25ae38..01caa10 100644 --- a/tournaments/admin.py +++ b/tournaments/admin.py @@ -20,6 +20,7 @@ class CustomUserAdmin(UserAdmin): add_form = CustomUserCreationForm model = CustomUser search_fields = ['username', 'email', 'phone', 'first_name', 'last_name', 'licence_id'] + filter_horizontal = ('clubs',) list_display = ['email', 'first_name', 'last_name', 'username', 'date_joined', 'latest_event_club_name', 'is_active', 'event_count', 'origin', 'registration_payment_mode', 'licence_id'] list_filter = ['is_active', 'origin']