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:
committed by
Tim Graham
parent
7e303d15c3
commit
09119dff14
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user