Fix erreur 500 contact form
This commit is contained in:
parent
e875ae626b
commit
1d9251946c
@ -732,6 +732,10 @@ class ContactMessageCreateView(SuccessMessageMixin, CreateView):
|
||||
success_url = reverse_lazy("home")
|
||||
success_message = _("Your message has been sent successfully.")
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.event = None
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def get_form(self, form_class=None):
|
||||
if form_class is None:
|
||||
form_class = self.get_form_class()
|
||||
|
Loading…
Reference in New Issue
Block a user