feat: add consent form for data processing

This commit is contained in:
James Graham committed 2021-01-20 11:53:08 +00:00
1 parent f2e945c67f
commit 6dc4bd770f
8 files changed
+99 -6

No files matched your search

+3
View File
@@ -32,6 +32,9 @@ class User(AbstractUser):
"""
email = models.EmailField(_('email address'), blank=False, null=False)
#: Have they given consent to collect and store their data?
consent_given = models.BooleanField(default=False)
def has_person(self) -> bool:
"""
Does this user have a linked :class:`Person` record?