fix active check for remote identities
This commit is contained in:
parent
d81743a8cc
commit
757e95654f
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class APIdentity(models.Model):
|
|||
@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
|
||||
|
|
Loading…
Add table
Reference in a new issue