SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 199427b4 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Fix the mail app take 428971234

parent e39c03d5
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,7 @@ class MailEditorMixin: ...@@ -80,6 +80,7 @@ class MailEditorMixin:
if not self.has_permission_to_send_mail: if not self.has_permission_to_send_mail:
# Don't use the mail form; don't send out the mail. # Don't use the mail form; don't send out the mail.
return super().post(request, *args, **kwargs) return super().post(request, *args, **kwargs)
self.object = self.get_object()
form = self.get_form() form = self.get_form()
if form.is_valid(): if form.is_valid():
self.mail_form = EmailTemplateForm(request.POST or None, mail_code=self.mail_code, self.mail_form = EmailTemplateForm(request.POST or None, mail_code=self.mail_code,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment