0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Fixed/improved release note for refs #13147; thanks Loic.

This commit is contained in:
Tim Graham 2014-07-14 07:46:19 -04:00
parent dd6ef3197a
commit 7affb4ad58

View File

@ -415,8 +415,12 @@ Miscellaneous
``pk`` parameter in ``params`` for backwards compatibility. ``pk`` parameter in ``params`` for backwards compatibility.
* ``UserCreationForm.errors_messages['duplicate_username']`` is no longer used. * ``UserCreationForm.errors_messages['duplicate_username']`` is no longer used.
If you wish to customize that error message, use If you wish to customize that error message, :ref:`override it on the form
``User.error_messages['unique']`` instead. <considerations-regarding-model-errormessages>` using
``Meta.errors_messages['unique']`` or, if you have a custom user model, use
the ``'unique'`` key in the :attr:`~django.db.models.Field.error_messages`
option of the field designated by
:attr:`~django.contrib.auth.models.CustomUser.USERNAME_FIELD`.
.. _deprecated-features-1.8: .. _deprecated-features-1.8: