Merge branch 'main' into nmb/rbac

This commit is contained in:
Neil Martinsen-Burrell 2023-03-10 10:07:00 -06:00
commit 2451cd8d11
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
29 changed files with 512 additions and 270 deletions

View file

@ -1,6 +1,8 @@
from django.contrib.auth.models import AbstractUser
from django.db import models
from phonenumber_field.modelfields import PhoneNumberField # type: ignore
class User(AbstractUser):
"""
@ -14,6 +16,13 @@ class User(AbstractUser):
related_name="users",
)
phone = PhoneNumberField(
null=True,
blank=True,
help_text="Phone",
db_index=True,
)
def __str__(self):
# this info is pulled from Login.gov
if self.first_name or self.last_name: