Update post_save to work with Contact

This commit is contained in:
Seamus Johnston 2023-03-07 11:07:20 -06:00
parent 7815d58c2c
commit b65f1a63d3
No known key found for this signature in database
GPG key ID: 2F21225985069105
5 changed files with 180 additions and 19 deletions

View file

@ -1,5 +1,7 @@
from django.contrib.auth.models import AbstractUser
from phonenumber_field.modelfields import PhoneNumberField # type: ignore
class User(AbstractUser):
"""
@ -7,6 +9,13 @@ class User(AbstractUser):
but can be customized later.
"""
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: