mirror of
https://github.com/django/django.git
synced 2025-10-17 13:58:24 +00:00
Fixed #22935 -- Changed ForeignKey.default_error_messages['invalid'] to refer to correct field.
Thanks Tim Graham for suggestion and review.
This commit is contained in:
parent
27ee608b55
commit
10e83d48a3
4 changed files with 19 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue