Add search fields for locker rentals
This commit is contained in:
parent
bd9ce2457b
commit
78f5d79e01
@ -24,4 +24,6 @@ class LockerUnitAdmin(admin.ModelAdmin):
|
|||||||
inlines = [LockerRentalInline]
|
inlines = [LockerRentalInline]
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(LockerRental)
|
@admin.register(LockerRental)
|
||||||
|
class LockerRentalAdmin(admin.ModelAdmin):
|
||||||
|
search_fields = ["user__username", "locker_unit__bank__name"]
|
||||||
|
Loading…
Reference in New Issue
Block a user