Add search fields for locker rentals

This commit is contained in:
Adam Goldsmith 2022-01-28 16:03:58 -05:00
parent bd9ce2457b
commit 78f5d79e01

View File

@ -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"]