[rentals] Fix form field ids in lockerIndex view
This commit is contained in:
parent
0427c3f565
commit
3b8d97573f
@ -11,7 +11,10 @@ from .forms import LockerInfoForm
|
|||||||
def lockerIndex(request):
|
def lockerIndex(request):
|
||||||
locker_banks = {
|
locker_banks = {
|
||||||
bank: {
|
bank: {
|
||||||
unit: [LockerInfoForm(instance=locker) for locker in unit.lockers.all()]
|
unit: [
|
||||||
|
LockerInfoForm(instance=locker, auto_id=locker.address + "_%s")
|
||||||
|
for locker in unit.lockers.all()
|
||||||
|
]
|
||||||
for unit in bank.units.all()
|
for unit in bank.units.all()
|
||||||
}
|
}
|
||||||
for bank in LockerBank.objects.all()
|
for bank in LockerBank.objects.all()
|
||||||
|
Loading…
Reference in New Issue
Block a user