Fixed #13147 -- Moved User validation logic from form to model.

This commit is contained in:
Yin Jifeng 2014-04-06 23:30:46 +08:00 committed by Tim Graham
parent d88333661b
commit 849538d03d
4 changed files with 18 additions and 38 deletions

View file

@ -414,6 +414,10 @@ Miscellaneous
parameters. Internally, Django will continue to provide the
``pk`` parameter in ``params`` for backwards compatibility.
* ``UserCreationForm.errors_messages['duplicate_username']`` is no longer used.
If you wish to customize that error message, use
``User.error_messages['unique']`` instead.
.. _deprecated-features-1.8:
Features deprecated in 1.8