From 38d5d4688bbccecd543ab2c1f5021b9c6bfcf21f Mon Sep 17 00:00:00 2001 From: Bendeguz Csirmaz Date: Wed, 31 Jul 2024 22:19:06 +0800 Subject: [PATCH] Fixed #373 - Fix test. --- django/contrib/contenttypes/fields.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/django/contrib/contenttypes/fields.py b/django/contrib/contenttypes/fields.py index a3e87f6ed4..1d58a538ed 100644 --- a/django/contrib/contenttypes/fields.py +++ b/django/contrib/contenttypes/fields.py @@ -362,6 +362,9 @@ class GenericRelation(ForeignObject): *self._check_generic_foreign_key_existence(), ] + def _check_from_fields_exist(self): + return [] + def _is_matching_generic_foreign_key(self, field): """ Return True if field is a GenericForeignKey whose content type and