diff --git a/users/models/apidentity.py b/users/models/apidentity.py index 01c74b15..11ea1842 100644 --- a/users/models/apidentity.py +++ b/users/models/apidentity.py @@ -41,7 +41,7 @@ def takahe_identity(self): @property def is_active(self): return ( - self.user and self.user.is_active and self.takahe_identity.deleted is None + self.user.is_active if self.user else self.takahe_identity.deleted is None ) @property