Skip to content
Snippets Groups Projects
Commit 8464dea5 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix is_none predicate to really return if an object is not set

parent 9e3f1aec
No related branches found
No related tags found
1 merge request!145Resolve "is_none predicate is actually is_not_none"
Pipeline #6073 passed
......@@ -15,7 +15,7 @@ from ..models import PersonalNote
@predicate
def is_none(user: User, obj: Any) -> bool:
"""Predicate that checks if the provided object is None-like."""
return bool(obj)
return not bool(obj)
@predicate
......
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