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

Further fix the release notes for refs #13147.

Mention of custom user models has been removed since UserCreationForm
didn't support custom user models anyway. Refs #19353.
This commit is contained in:
Loic Bistuer 2014-07-15 14:25:23 +07:00
parent 4e424084e6
commit 671e0c937c

View File

@ -416,11 +416,10 @@ Miscellaneous
* ``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, :ref:`override it on the form If you wish to customize that error message, :ref:`override it on the form
<considerations-regarding-model-errormessages>` using <modelforms-overriding-default-fields>` using the ``'unique'`` key in
``Meta.errors_messages['unique']`` or, if you have a custom user model, use ``Meta.errors_messages['username']`` or, if you have a custom form field for
the ``'unique'`` key in the :attr:`~django.db.models.Field.error_messages` ``'username'``, using the the ``'unique'`` key in its
option of the field designated by :attr:`~django.forms.Field.error_messages` argument.
:attr:`~django.contrib.auth.models.CustomUser.USERNAME_FIELD`.
.. _deprecated-features-1.8: .. _deprecated-features-1.8: