Fixes #18991: AttributeError: NoneType object has not attribute model (#19006)

This commit is contained in:
Jason Novinger
2025-03-26 12:12:45 -05:00
committed by GitHub
parent 817d7efee3
commit fd2bcda8b8
2 changed files with 41 additions and 3 deletions

View File

@@ -198,9 +198,9 @@ class GenericArrayForeignKey(FieldCacheMixin, models.Field):
Provide a generic many-to-many relation through an 2d array field
"""
many_to_many = True
many_to_many = False
many_to_one = False
one_to_many = False
one_to_many = True
one_to_one = False
def __init__(self, field, for_concrete_model=True):