add firstname and surname to search field
This commit is contained in:
@@ -204,7 +204,12 @@ class BillAdmin(admin.ModelAdmin):
|
||||
actions = ["make_cleared", "make_finished"]
|
||||
autocomplete_fields = ["resolution"]
|
||||
list_filter = ["status", "affiliation", "payer", BillPeriodeFilter]
|
||||
search_fields = ["purpose", "bankdata__name"]
|
||||
search_fields = [
|
||||
"purpose",
|
||||
"bankdata__name",
|
||||
"bill_creator__firstname",
|
||||
"bill_creator__surname",
|
||||
]
|
||||
show_facets = admin.ShowFacets.ALWAYS
|
||||
ordering = ["-id"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user