mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +02:00
Update post_save to work with Contact
This commit is contained in:
parent
7815d58c2c
commit
b65f1a63d3
5 changed files with 180 additions and 19 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue