Skip to content

Commit

Permalink
Removed some inline informations in the Competitions admin page to fi…
Browse files Browse the repository at this point in the history
…x the http 502 error when trying to load big competitions
  • Loading branch information
Obada Haddad committed Jan 14, 2025
1 parent cc8ccc6 commit 8aaff99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions codalab/apps/web/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8aaff99

Please sign in to comment.