Skip to content

Commit

Permalink
added filter on office application objects
Browse files Browse the repository at this point in the history
  • Loading branch information
williadav committed Aug 23, 2024
1 parent 061133b commit f61f88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chemie/home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down

0 comments on commit f61f88d

Please sign in to comment.