October feature list #226
1 changed files with 1 additions and 1 deletions
|
|
@ -485,7 +485,7 @@ class OrganizationInvitation(ServalaModelMixin, models.Model):
|
||||||
def is_accepted(self):
|
def is_accepted(self):
|
||||||
# We check both accepted_by and accepted_at to avoid a deleted user
|
# We check both accepted_by and accepted_at to avoid a deleted user
|
||||||
# freeing up an invitation
|
# freeing up an invitation
|
||||||
return self.accepted_by or self.accepted_at
|
return bool(self.accepted_by or self.accepted_at)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def can_be_accepted(self):
|
def can_be_accepted(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue