summaryrefslogtreecommitdiff
path: root/docs/releases
diff options
context:
space:
mode:
authorLoic Bistuer <loic.bistuer@sixmedia.com>2013-06-05 14:55:05 -0400
committerTim Graham <timograham@gmail.com>2013-06-18 08:01:17 -0400
commitee77d4b25360a9fc050c32769a334fd69a011a63 (patch)
tree1f20a040970dc53d2e4977d79fe66ea7626cd932 /docs/releases
parentf34cfec0fa1243b4a3b9865b961a2360f211f0d8 (diff)
Fixed #20199 -- Allow ModelForm fields to override error_messages from model fields
Diffstat (limited to 'docs/releases')
-rw-r--r--docs/releases/1.6.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt
index 7d449edbe5..f260a1eac0 100644
--- a/docs/releases/1.6.txt
+++ b/docs/releases/1.6.txt
@@ -318,6 +318,13 @@ Minor features
* Formsets now have a
:meth:`~django.forms.formsets.BaseFormSet.total_error_count` method.
+* :class:`~django.forms.ModelForm` fields can now override error messages
+ defined in model fields by using the
+ :attr:`~django.forms.Field.error_messages` argument of a ``Field``'s
+ constructor. To take advantage of this new feature with your custom fields,
+ :ref:`see the updated recommendation <raising-validation-error>` for raising
+ a ``ValidationError``.
+
Backwards incompatible changes in 1.6
=====================================