Skip to content
Snippets Groups Projects
Commit 547f8a51 authored by Valentin Rigal's avatar Valentin Rigal
Browse files

Suggestion

parent 7b70e103
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,10 @@ PUBLIC_LEVEL = Role.Guest.value
def has_public_field(model):
return type(getattr(model, 'public', None)) is DeferredAttribute
return isinstance(
getattr(model, 'public', None),
DeferredAttribute
)
def get_public_instances(model):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment