SciPost Code Repository

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

Add default sent-from address (invitations page)

parent 0df48725
No related branches found
No related tags found
No related merge requests found
......@@ -73,4 +73,7 @@ class SaveAndSendFormMixin(BaseFormViewMixin):
if isinstance(instance, RegistrationInvitation):
if instance.invitation_type == INVITATION_EDITORIAL_FELLOW:
self.alternative_from_address = ('J-S Caux', 'jscaux@scipost.org')
if not instance.invited_by and self.has_permission_to_send_mail:
instance.invited_by = self.request.user
instance.save()
return super().post(request, *args, **kwargs)
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