0
0
mirror of https://github.com/django/django.git synced 2024-11-21 19:09:18 +01:00

Fixed #373 - Fix test.

This commit is contained in:
Bendeguz Csirmaz 2024-07-31 22:19:06 +08:00
parent e8ee68f066
commit 38d5d4688b

View File

@ -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