added some filters to templates

This commit is contained in:
2025-08-03 10:50:59 +03:00
parent e824e87953
commit 13c4c324fc
29 changed files with 180 additions and 89 deletions
+3 -3
View File
@@ -11,7 +11,7 @@ class ClientContainersListView(ListView):
template_name = 'employee/containers-list.html'
model = Container
context_object_name = 'objects'
paginate_by = 30
paginate_by = 20
def get_queryset(self):
queryset = super().get_queryset()
@@ -26,10 +26,10 @@ class ClientContainersListView(ListView):
class ReportContainersUnpaidListView(ListView):
template_name = 'employee/payment-list.html'
template_name = 'employee/unpaid-list.html'
model = Container
context_object_name = 'objects'
paginate_by = 30
paginate_by = 20
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
+1 -1
View File
@@ -82,7 +82,7 @@ class ContainerDetails(ListView):
model = Container
# base_template = 'employee-base.html'
context_object_name = 'objects'
paginate_by = 10
paginate_by = 20
def get_queryset(self):
container_number = self.request.session.get('container_number')
+3 -3
View File
@@ -11,7 +11,7 @@ class ContainersListView(ListView):
template_name = 'employee/containers-list.html'
model = Container
context_object_name = 'objects'
paginate_by = 30 # Number of containers per page
paginate_by = 20 # Number of containers per page
# base_template = 'employee-base.html'
# def get_context_data(self, **kwargs):
@@ -31,10 +31,10 @@ class ContainersListView(ListView):
class ReportContainersUnpaidListView(ListView):
template_name = 'employee/payment-list.html'
template_name = 'employee/unpaid-list.html'
model = Container
context_object_name = 'objects'
paginate_by = 30 # Number of payments per page
paginate_by = 20 # Number of payments per page
# base_template = 'employee-base.html'
def get_context_data(self, **kwargs):