Hello,
You can create a new validator where domains are validate and insert it as
second validator.
Regards
Sencer Hamarat schrieb am Di., 14. Juni 2022,
15:16:
> Hi,
>
> Say, I have an email field in a model and need to add an email validator
> for email domain validation.
> For this, allowli
Hi,
Say, I have an email field in a model and need to add an email validator
for email domain validation.
For this, allowlist property needs to be append to email validator like:
email = models.EmailField(
validators=[
EmailValidator(allowlist=['example1.com', 'example2.com',...])
2 matches
Mail list logo