Skip to content

Commit

Permalink
fix: make fsm django admin lighter
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Nov 5, 2024
1 parent 79a89f9 commit 3a46784
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/fsm/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ class FSMAdmin(admin.ModelAdmin):
'mentors_num', 'mentors_list', 'online_teams_in_last_hour']
list_filter = ['name']
search_fields = ['name']
autocomplete_fields = ['creator', 'mentors',
'program', 'first_state', '_object']
actions = [clone_fsm]

def mentors_list(self, obj):
Expand Down Expand Up @@ -491,6 +493,7 @@ class WidgetHintCustomAdmin(admin.ModelAdmin):
class ProgramCustomAdmin(admin.ModelAdmin):
list_display = ['id', 'name', 'registration_form', 'creator']
list_display_links = ['id', 'name']
search_fields = ['name']


@admin.register(UploadFileProblem)
Expand Down

0 comments on commit 3a46784

Please sign in to comment.