@@ -1127,7 +1127,7 @@ def clean(self):
11271127 if (self .type in (
11281128 CustomFieldTypeChoices .TYPE_OBJECT ,
11291129 CustomFieldTypeChoices .TYPE_MULTIOBJECT ,
1130- ) and self .related_object_type_id and
1130+ ) and self .related_object_type_id and
11311131 self .related_object_type .app_label == APP_LABEL ):
11321132 self ._check_recursion ()
11331133
@@ -1161,11 +1161,11 @@ def _check_recursion(self):
11611161 def _has_circular_reference (self , custom_object_type , visited ):
11621162 """
11631163 Recursively check if there's a circular reference by following the dependency chain.
1164-
1164+
11651165 Args:
11661166 custom_object_type: The CustomObjectType object to check
11671167 visited: Set of custom object type IDs already visited in this traversal
1168-
1168+
11691169 Returns:
11701170 bool: True if a circular reference is detected, False otherwise
11711171 """
@@ -1175,7 +1175,7 @@ def _has_circular_reference(self, custom_object_type, visited):
11751175
11761176 # Add this type to visited set
11771177 visited .add (custom_object_type .id )
1178-
1178+
11791179 # Check all object and multiobject fields in this custom object type
11801180 for field in custom_object_type .fields .filter (
11811181 type__in = [
@@ -1191,7 +1191,7 @@ def _has_circular_reference(self, custom_object_type, visited):
11911191 next_custom_object_type = CustomObjectType .objects .get (object_type = field .related_object_type )
11921192 except CustomObjectType .DoesNotExist :
11931193 continue
1194-
1194+
11951195 # Recursively check this dependency
11961196 if self ._has_circular_reference (next_custom_object_type , visited ):
11971197 return True
0 commit comments