From 8aaff998be7921e4f764aa256261d040e8809227 Mon Sep 17 00:00:00 2001 From: Obada Haddad Date: Tue, 14 Jan 2025 13:27:18 +0100 Subject: [PATCH] Removed some inline informations in the Competitions admin page to fix the http 502 error when trying to load big competitions --- codalab/apps/web/admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codalab/apps/web/admin.py b/codalab/apps/web/admin.py index adb21fa35..595fee3fa 100644 --- a/codalab/apps/web/admin.py +++ b/codalab/apps/web/admin.py @@ -14,10 +14,10 @@ class ParticipantInlineAdmin(admin.TabularInline): model = models.CompetitionParticipant class CompetitionAdmin(admin.ModelAdmin): - inlines = [ - PhaseInlineAdmin, - ParticipantInlineAdmin - ] + #inlines = [ + #PhaseInlineAdmin, + #ParticipantInlineAdmin + #] search_fields = ['title', 'creator__username'] list_display = ['title', 'creator'] admin.site.register(models.Competition, CompetitionAdmin)