diff --git a/django_lifecycle/mixins.py b/django_lifecycle/mixins.py index 3b5b6b6..b205535 100644 --- a/django_lifecycle/mixins.py +++ b/django_lifecycle/mixins.py @@ -267,7 +267,7 @@ def _get_model_descriptor_names(cls) -> List[str]: for name in dir(cls): attr = getattr(cls, name, None) - if attr and isinstance(attr, DJANGO_RELATED_FIELD_DESCRIPTOR_CLASSES): + if isinstance(attr, DJANGO_RELATED_FIELD_DESCRIPTOR_CLASSES): descriptor_names.append(name) return descriptor_names