Re: Does django supports dynamic allowlist in EmailValidator

2022-06-14 Thread Sebastian Jung
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

Does django supports dynamic allowlist in EmailValidator

2022-06-14 Thread Sencer Hamarat
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',...])