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:
committed by
Mariusz Felisiak
parent
4e8d89020c
commit
a97111eabf
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user