Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
fix(admin): fixed icontains lookup for names
Browse files Browse the repository at this point in the history
  • Loading branch information
hepplerj committed Apr 30, 2024
1 parent c81bc11 commit bc1175f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion postcards/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,13 @@ class ObjectAdmin(ExportMixin, admin.ModelAdmin):
"translated",
)
inlines = [TranscriptionInline, ImageInline]
search_fields = ["item_id", "sender_name", "addressee_name"]
search_fields = [
"item_id",
"sender_name__last_name",
"sender_name__first_name",
"addressee_name__last_name",
"addressee_name__first_name",
]
list_filter = (
"collection",
"letter_enclosed",
Expand Down

0 comments on commit bc1175f

Please sign in to comment.