def METHOD_NAME(self):
    election = Election.objects.get(slug=self.kwargs["election"])
    if election.nominations_complete:
        messages.error(
            self.request, f"Nominations for {election.name} Election are closed"
        )
        raise Http404(f"Nominations for {election.name} Election are closed")
    return NominationCreateForm