From a97111eabf39e50625d7a8acc6cd46f4c5dad0da Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Wed, 29 Jan 2020 14:29:09 +0100 Subject: Fixed 31207 -- Prevented references to non-local remote fields in ForeignKey.to_field. Thanks Simon Charette for the initial patch and review. --- docs/releases/3.1.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt index 221cf39dee..40380b6274 100644 --- a/docs/releases/3.1.txt +++ b/docs/releases/3.1.txt @@ -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 -- cgit v1.3