CHANGE: New user signups now require admin approval

Given that I intend to reveal much more data to new users this seems necessary...
This commit is contained in:
2020-01-11 18:18:08 +00:00
parent 68af9c8779
commit 479977ef58
6 changed files with 40 additions and 4 deletions

View File

@@ -27,6 +27,7 @@ class Profile(AbstractUser):
initials = models.CharField(max_length=5, unique=True, null=True, blank=False)
phone = models.CharField(max_length=13, null=True, blank=True)
api_key = models.CharField(max_length=40, blank=True, editable=False, null=True)
is_approved = models.BooleanField(default=False)
@classmethod
def make_api_key(cls):