From 326e8fc8b1c615f8533b45e80ce0ae636ebdcc17 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 24 Apr 2024 20:19:29 +0100 Subject: Fix for CSRF and loginrequired middleware --- engagements/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engagements') diff --git a/engagements/views.py b/engagements/views.py index fb804df..ae1abfd 100644 --- a/engagements/views.py +++ b/engagements/views.py @@ -16,7 +16,7 @@ from .forms import ( from .models import Engagement, EngagementEffort, EngagementType, Organisation -class RegulatedEntitiesView(ListView, LoginRequiredMixin): +class RegulatedEntitiesView(LoginRequiredMixin, ListView): context_object_name = "entities" queryset = Organisation.objects.filter(is_regulated_entity=True).order_by("name") template_name = "engagements/organisations.html" -- cgit v1.2.3