Correction fonction
This commit is contained in:
parent
c2b6512895
commit
2547e2f082
@ -654,7 +654,7 @@ class EventCreateView(SuccessMessageMixin, CreateView):
|
|||||||
|
|
||||||
if form.cleaned_data.get("email") or form.cleaned_data.get("comments"):
|
if form.cleaned_data.get("email") or form.cleaned_data.get("comments"):
|
||||||
has_comments = not form.cleaned_data.get("comments") in ["", None]
|
has_comments = not form.cleaned_data.get("comments") in ["", None]
|
||||||
form.instance.set_message(
|
form.instance.add_message(
|
||||||
Message(subject=_('during the creation process'),
|
Message(subject=_('during the creation process'),
|
||||||
message=form.cleaned_data.get("comments"),
|
message=form.cleaned_data.get("comments"),
|
||||||
email=form.cleaned_data.get("email"),
|
email=form.cleaned_data.get("email"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user