Display message when testing a mailing profile

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-10-27 14:07:12 -04:00
parent 2a16a18984
commit e35c5f6d22
2 changed files with 5 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
3.2.9 (2019-XX-XX)
==================
- Move IMAPMockServer to its own module.
- Display feedback message when testing a mailing profile.
3.2.8 (2019-10-01)
==================

View File

@@ -1,5 +1,6 @@
from __future__ import absolute_import, unicode_literals
from django.contrib import messages
from django.http import Http404, HttpResponseRedirect
from django.shortcuts import get_object_or_404
from django.template import RequestContext
@@ -248,6 +249,9 @@ class UserMailerTestView(FormView):
def form_valid(self, form):
self.get_object().test(to=form.cleaned_data['email'])
messages.success(
message=_('Test email sent.'), request=self.request
)
return super(UserMailerTestView, self).form_valid(form=form)
def get_extra_context(self):