feat: Also search for description, internal comment and location of rescue orgs
icontains is default and therefore ommitted https://docs.djangoproject.com/en/5.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.search_fields
This commit is contained in:
parent
9b824bc326
commit
d1eeaafc42
@ -96,7 +96,7 @@ class ReportAdoptionNoticeAdmin(admin.ModelAdmin):
|
||||
|
||||
@admin.register(RescueOrganization)
|
||||
class RescueOrganizationAdmin(admin.ModelAdmin):
|
||||
search_fields = ("name__icontains",)
|
||||
search_fields = ("name","description", "internal_comment", "location_string")
|
||||
list_display = ("name", "trusted", "allows_using_materials", "website")
|
||||
list_filter = ("allows_using_materials", "trusted",)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user