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:
moanos [he/him] 2024-12-17 20:14:14 +01:00
parent 9b824bc326
commit d1eeaafc42

View File

@ -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",)