fix loading teamscore in admin

shop
Razmig Sarkissian 8 months ago
parent 686a2a1c57
commit f251f4e734
  1. 1
      tournaments/admin.py

@ -63,7 +63,6 @@ class TeamScoreAdmin(admin.ModelAdmin):
search_fields = ['id'] search_fields = ['id']
raw_id_fields = ['team_registration', 'match'] # Add this line raw_id_fields = ['team_registration', 'match'] # Add this line
list_per_page = 50 # Controls pagination on the list view 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): def get_queryset(self, request):
qs = super().get_queryset(request) qs = super().get_queryset(request)

Loading…
Cancel
Save