[rentals] Show notes in changelist of LockerInfo

This commit is contained in:
Adam Goldsmith 2022-02-18 15:35:03 -05:00
parent 6326972b8f
commit fb738441d2

View File

@ -29,7 +29,14 @@ class LockerUnitAdmin(admin.ModelAdmin):
class LockerInfoAdmin(admin.ModelAdmin): class LockerInfoAdmin(admin.ModelAdmin):
search_fields = ["renter__username", "locker_unit__bank__name"] search_fields = ["renter__username", "locker_unit__bank__name"]
list_filter = ["locker_unit__bank", "locker_unit", "renter"] list_filter = ["locker_unit__bank", "locker_unit", "renter"]
list_display = ["locker_unit", "address", "blind_code", "bitting_code", "renter"] list_display = [
"locker_unit",
"address",
"blind_code",
"bitting_code",
"renter",
"notes",
]
list_display_links = ["locker_unit", "address"] list_display_links = ["locker_unit", "address"]
list_editable = ["blind_code", "bitting_code"] list_editable = ["blind_code", "bitting_code"]