1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed 31207 -- Prevented references to non-local remote fields in ForeignKey.to_field.

Thanks Simon Charette for the initial patch and review.
This commit is contained in:
Hasan Ramezani
2020-01-29 14:29:09 +01:00
committed by Mariusz Felisiak
parent 4e8d89020c
commit a97111eabf
3 changed files with 37 additions and 0 deletions

View File

@@ -449,6 +449,9 @@ Miscellaneous
decorator now takes precedence over the ``max-age`` directive from the
``Cache-Control`` header.
* Providing a non-local remote field in the :attr:`.ForeignKey.to_field`
argument now raises :class:`~django.core.exceptions.FieldError`.
.. _deprecated-features-3.1:
Features deprecated in 3.1