Skip to content

Commit

Permalink
optimize AttachmentAdmin (#467)
Browse files Browse the repository at this point in the history
Co-authored-by: petr.prikryl <[email protected]>
  • Loading branch information
petrprikryl and petr.prikryl authored May 20, 2024
1 parent 9acc56f commit c54db5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions post_office/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ class AttachmentAdmin(admin.ModelAdmin):
list_display = ['name', 'file']
filter_horizontal = ['emails']
search_fields = ["name"]
autocomplete_fields = ["emails"]


admin.site.register(Email, EmailAdmin)
Expand Down

0 comments on commit c54db5c

Please sign in to comment.