summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-07-14 07:46:19 -0400
committerTim Graham <timograham@gmail.com>2014-07-14 07:46:19 -0400
commit7affb4ad58e7ee93e4cca0c350315c63035ed648 (patch)
treecf8b9583f71684419b06fa8c083d23e93e96d7fe /docs
parentdd6ef3197a4d10696c5ef4ddb55b0d4baaba4340 (diff)
Fixed/improved release note for refs #13147; thanks Loic.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.8.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index 259ee00e4b..bbd573d782 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -415,8 +415,12 @@ Miscellaneous
``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.
+ If you wish to customize that error message, :ref:`override it on the form
+ <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: