Files
depot_django/booking/views/employee_views.py
T
2025-07-15 20:57:15 +03:00

16 lines
485 B
Python

from django.views.generic import ListView
from booking.models import Booking
class BookingListView(ListView):
template_name = 'employee/booking-list.html'
model = Booking
context_object_name = 'objects'
paginate_by = 30 # Number of containers per page
base_template = 'employee-base.html'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['base_template'] = self.base_template
return context