From f61f88d4208751a4375973fae35f10f928948520 Mon Sep 17 00:00:00 2001 From: William Date: Fri, 23 Aug 2024 13:24:14 +0200 Subject: [PATCH] added filter on office application objects --- chemie/home/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chemie/home/views.py b/chemie/home/views.py index 454303c4..b2791e6b 100644 --- a/chemie/home/views.py +++ b/chemie/home/views.py @@ -204,7 +204,7 @@ def edit_flatpage(request, url): class OfficeAccessApplicationListView(PermissionRequiredMixin, ListView): template_name = "home/office_access_list.html" - queryset = OfficeApplication.objects.order_by("-created") + queryset = OfficeApplication.objects.filter(created__gte=timezone.now() - timezone.timedelta(days=365)).order_by("-created") permission_required = "home.change_officeapplication"