cmsmanage/rentals/views.py

11 lines
245 B
Python

from django.shortcuts import render
from .models import LockerBank, LockerRental
def lockerIndex(request):
context = {
"locker_banks": LockerBank.objects.all(),
}
return render(request, "rentals/lockers.dj.html", context)