Skip to content

Commit

Permalink
fix: make some Paper admin fields autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Nov 21, 2024
1 parent a311cfe commit fe72b14
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 @@ -91,6 +91,7 @@ class PaperAdmin(admin.ModelAdmin):
list_display = ['id']
list_filter = []
search_fields = ['id']
autocomplete_fields = ['creator', '_object']


class RegistrationFormAdmin(admin.ModelAdmin):
Expand All @@ -117,6 +118,7 @@ class FormAdmin(PaperAdmin):
['audience_type', 'start_date', 'end_date']
list_filter = PaperAdmin.list_filter + []
search_fields = PaperAdmin.search_fields + ['id']
autocomplete_fields = PaperAdmin.autocomplete_fields + []


def delete_registration_receipts(modeladmin, request, queryset):
Expand Down

0 comments on commit fe72b14

Please sign in to comment.