From f251f4e73494fbc950c4fb0ae2a873cfeeb97f56 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Wed, 12 Mar 2025 12:58:35 +0100 Subject: [PATCH] fix loading teamscore in admin --- tournaments/admin.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tournaments/admin.py b/tournaments/admin.py index d140a66..36537dd 100644 --- a/tournaments/admin.py +++ b/tournaments/admin.py @@ -63,7 +63,6 @@ class TeamScoreAdmin(admin.ModelAdmin): search_fields = ['id'] raw_id_fields = ['team_registration', 'match'] # Add this line list_per_page = 50 # Controls pagination on the list view - readonly_fields = ['team_registration', 'match'] # Make this field read-only in the edit form def get_queryset(self, request): qs = super().get_queryset(request)