mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
feat(people): Add notice to fill in user details
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user