Skip to content

Commit 7affb4a

Browse files
committed
Fixed/improved release note for refs #13147; thanks Loic.
1 parent dd6ef31 commit 7affb4a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/releases/1.8.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,12 @@ Miscellaneous
415415
``pk`` parameter in ``params`` for backwards compatibility.
416416

417417
* ``UserCreationForm.errors_messages['duplicate_username']`` is no longer used.
418-
If you wish to customize that error message, use
419-
``User.error_messages['unique']`` instead.
418+
If you wish to customize that error message, :ref:`override it on the form
419+
<considerations-regarding-model-errormessages>` using
420+
``Meta.errors_messages['unique']`` or, if you have a custom user model, use
421+
the ``'unique'`` key in the :attr:`~django.db.models.Field.error_messages`
422+
option of the field designated by
423+
:attr:`~django.contrib.auth.models.CustomUser.USERNAME_FIELD`.
420424

421425
.. _deprecated-features-1.8:
422426

0 commit comments

Comments
 (0)