Skip to content

Instantly share code, notes, and snippets.

@loic
Created July 14, 2014 17:53
Show Gist options
  • Save loic/5d4913b1375a1a9923ed to your computer and use it in GitHub Desktop.
Save loic/5d4913b1375a1a9923ed to your computer and use it in GitHub Desktop.
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index bbd573d..7705edd 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -416,11 +416,8 @@ Miscellaneous
* ``UserCreationForm.errors_messages['duplicate_username']`` is no longer used.
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`.
+ <modelforms-overriding-default-fields>` with the ``'unique'`` key in
+ ``Meta.errors_messages['username']``.
.. _deprecated-features-1.8:
@timgraham
Copy link

ship it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment