feat(people): Add notice to fill in user details

This commit is contained in:
James Graham
2020-03-03 09:55:47 +00:00
parent 7ee7ed3ff0
commit e3ef4ed90c
4 changed files with 25 additions and 0 deletions

View File

@@ -15,6 +15,16 @@ class User(AbstractUser):
"""
Custom user model in case we need to make changes later.
"""
def has_person(self) -> bool:
"""
Does this user have a linked :class:`Person` record?
"""
try:
person = self.person
return True
except Person.DoesNotExist:
return False
class Organisation(models.Model):