diff --git a/rentals/admin.py b/rentals/admin.py index db93b91..b969b78 100644 --- a/rentals/admin.py +++ b/rentals/admin.py @@ -24,4 +24,6 @@ class LockerUnitAdmin(admin.ModelAdmin): inlines = [LockerRentalInline] -admin.site.register(LockerRental) +@admin.register(LockerRental) +class LockerRentalAdmin(admin.ModelAdmin): + search_fields = ["user__username", "locker_unit__bank__name"]