added some filters to templates
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user