1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #26719 -- Normalized email in AbstractUser.clean().

This commit is contained in:
Bang Dao + Tam Huynh
2016-06-16 17:06:59 +07:00
committed by Tim Graham
parent 7e303d15c3
commit 09119dff14
4 changed files with 27 additions and 1 deletions

View File

@@ -293,6 +293,11 @@ Miscellaneous
<django.db.models.Model.validate_unique>` no longer checks empty strings for
uniqueness as the database interprets the value as ``NULL``.
* If you subclass :class:`.AbstractUser` and override ``clean()``, be sure it
calls ``super()``. :meth:`.BaseUserManager.normalize_email` is called in a
new :meth:`.AbstractUser.clean` method so that normalization is applied in
cases like model form validation.
.. _deprecated-features-1.11:
Features deprecated in 1.11