diff options
author | Yulqen <246857+yulqen@users.noreply.github.com> | 2024-04-24 20:20:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 20:20:14 +0100 |
commit | c8d1b09f37be32cbda3c0f6cca2c241a1d20ad8e (patch) | |
tree | 590874b1d540a76b37eafc30cd9a1b201dd3a70a /engagements/views.py | |
parent | bc3c42b2279a3bf1e7159f110e662e942a5fdc2e (diff) | |
parent | 326e8fc8b1c615f8533b45e80ce0ae636ebdcc17 (diff) |
Merge pull request #34 from defencedigital/pyswitch
Fix for CSRF and loginrequired middleware
Diffstat (limited to '')
-rw-r--r-- | engagements/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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" |