EmailField does not automatically lower the case in email addresses
|Reported by:||zechs.marquie@…||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.3|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Neither in a form or a model does the EmailField become lower case upon saving or validating.
If this field were to be lower the validation regex would be simpler. In addition if you have a unique constraint on this field within your model then you are free to add test@… and tesT@… and any unique variant of upper/lower case characters.
Seems a bit of a short fall seeing as the EmailField does some validation on email addresses already.
Change History (8)
comment:1 Changed 3 years ago by anonymous
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset