Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion django_lifecycle/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this avoid property evaluation? I'm not sure about it.

Could you make a test to prove it? If not I could help with that.

(sorry about answering so late)

descriptor_names.append(name)

return descriptor_names
Expand Down