From a3402a7532e2fdc2c264f12e18eb8bbd84a45bcf Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Tue, 22 Jul 2025 10:13:33 -0400 Subject: [PATCH] Update views.py --- nominations/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nominations/views.py b/nominations/views.py index 484f7a7c2..570d89c48 100644 --- a/nominations/views.py +++ b/nominations/views.py @@ -89,6 +89,11 @@ def get_form_class(self): self.request, f"Nominations for {election.name} Election are closed" ) raise Http404(f"Nominations for {election.name} Election are closed") + if not election.nominations_open: + messages.error( + self.request, f"Nominations for {election.name} Election are not open" + ) + raise Http404(f"Nominations for {election.name} Election are not open") return NominationCreateForm pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy