As far as I know validators don't return anything, just raise an Exception
if the parameters don't validate

On Tue, Dec 20, 2016 at 10:28 AM, NoviceSortOf <dljonsson2...@gmail.com>
wrote:

>
> Why does validate_email return None irregardless of what is typed in?
>
> >>> from django.core.validators import validate_email
> >>> x = validators.validate_email('t...@example.com')
> >>> print x
> None
> >>>
>
> Shouldn't it be returning True or False?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/a92f05ab-1ad3-4434-8cf8-de3fb8f87d7d%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a92f05ab-1ad3-4434-8cf8-de3fb8f87d7d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALn3ei1%2Ba1320sLWPjVxD%3DJy-n1Txy4uUH7jwDTzd0L1U%2BbDog%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to