Yesterday I realized that, Django email field default value is not "Null" actually is an empty string ("") - Although I'm not code often, I was surprised.
I wrote some tests for a model where an `emailfield` was supposed to be `null=False`.
But during the tests, it didn't raise an Exception (when persist on DB). Or for a ModelForm `is_valid` in fact was True.
I did some (not a lot) research, and it seems the default value for an empty value for EmailField is ""
Isn't it counter productive? (at least for me, it was)
I believe, the empty value, is a special case for a Model Field
and I couldn't find any information on docs. (I told I did SOME research)
Please let me know my expectations make sense, I'll do my best for help,
if not, I know its not the place for "help", just tell me I'm wrong.
Thanks everyone.
--------------------------------------------------------------------
Cadu Leite
| Twitter
| @cadu_leite