Skip to content

Commit

Permalink
fix: make state admin lighter
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Dec 18, 2024
1 parent 0e34889 commit dcf0cc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/fsm/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ class StatePaperAdmin(admin.ModelAdmin):

class StatePaperInline(admin.TabularInline):
model = StatePaper
autocomplete_fields = ['state', 'paper']
extra = 1


Expand All @@ -430,6 +431,7 @@ class StateAdmin(admin.ModelAdmin):
inlines = [StatePaperInline]
list_display = ['id', 'title', 'fsm']
list_filter = ['fsm']
autocomplete_fields = ['fsm']
search_fields = ['title']


Expand Down

0 comments on commit dcf0cc0

Please sign in to comment.