mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 20:09:25 +00:00
Only begining of the mail is now needed
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user