summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnubhav Joshi <anubhav9042@gmail.com>2014-07-02 10:13:07 +0530
committerTim Graham <timograham@gmail.com>2014-07-02 13:01:36 -0400
commit10e83d48a3b199f9c8c73882be1ded5016f86a1a (patch)
treec4ed0078e5c2dbe51e0ffdd01c9f7388ef036e25 /docs
parent27ee608b5557c3cd18aab6a61f854a0f6c18f3df (diff)
Fixed #22935 -- Changed ForeignKey.default_error_messages['invalid'] to refer to correct field.
Thanks Tim Graham for suggestion and review.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.8.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index 381700557e..8a736aeb45 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -391,6 +391,13 @@ Miscellaneous
* Support for SpatiaLite < 2.4 has been dropped.
+* ``ForeignKey.default_error_message['invalid']`` has been changed from
+ ``'%(model)s instance with pk %(pk)r does not exist.'`` to
+ ``'%(model)s instance with %(field)s %(value)r does not exist.'`` If you are
+ using this message in your own code, please update the list of interpolated
+ parameters. Internally, Django will continue to provide the
+ ``pk`` parameter in ``params`` for backwards compatibility.
+
.. _deprecated-features-1.8:
Features deprecated in 1.8