Only begining of the mail is now needed

This commit is contained in:
2017-08-21 15:53:32 +02:00
parent ce9e17ea24
commit fe187dae38
3 changed files with 19 additions and 2 deletions

View File

@ -232,7 +232,7 @@ class Mailing(models.Model):
email = models.EmailField(_('Email address'), unique=True)
def clean(self):
if '@' + settings.SITH_MAILING_ALLOWED_DOMAIN not in self.email:
if '@' + settings.SITH_MAILING_DOMAIN not in self.email:
raise ValidationError(_('Unothorized mailing domain'))
super(Mailing, self).clean()