clean unused templates

added .env file to git because of the reason :)
This commit is contained in:
2025-07-30 19:39:39 +03:00
parent 2d0d33d525
commit 135da0ade1
35 changed files with 150 additions and 5150 deletions
+5 -5
View File
@@ -13,15 +13,15 @@ class ClientBookingView(LoginRequiredMixin, UserPassesTestMixin, ListView):
template_name = 'client/booking-list.html'
paginate_by = 4
context_object_name = 'objects'
base_template = 'client-base.html'
# base_template = 'client-base.html'
def test_func(self):
return self.request.user.has_company_perm('can_view_booking') or self.request.user.user_type == 'CA'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['base_template'] = self.base_template
return context
# def get_context_data(self, **kwargs):
# context = super().get_context_data(**kwargs)
# context['base_template'] = self.base_template
# return context
def get_queryset(self):
queryset = super().get_queryset()
+5 -5
View File
@@ -8,12 +8,12 @@ class BookingListView(ListView):
model = Booking
context_object_name = 'objects'
paginate_by = 30 # Number of containers per page
base_template = 'employee-base.html'
# 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
# def get_context_data(self, **kwargs):
# context = super().get_context_data(**kwargs)
# context['base_template'] = self.base_template
# return context
def get_queryset(self):
queryset = super().get_queryset()