From 72b0281a07ef387caf571fee14e9c19cf32ba9d5 Mon Sep 17 00:00:00 2001 From: Laurent Date: Sun, 8 Jun 2025 10:38:56 +0200 Subject: [PATCH] add raw id field for agents --- tournaments/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tournaments/admin.py b/tournaments/admin.py index 6be27c2..d6f6561 100644 --- a/tournaments/admin.py +++ b/tournaments/admin.py @@ -21,6 +21,7 @@ class CustomUserAdmin(UserAdmin): 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'] ordering = ['-date_joined'] + raw_id_fields = ['agents'] fieldsets = [ (None, {'fields': ['id', 'username', 'email', 'password', 'first_name', 'last_name', 'is_active', 'registration_payment_mode', 'clubs', 'country', 'phone', 'licence_id', 'umpire_code',