Merge branch 'main' into za/1988-investigate-indexes

This commit is contained in:
zandercymatics 2024-06-04 09:50:47 -06:00
commit 8a1101a250
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
65 changed files with 11306 additions and 496 deletions

View file

@ -108,6 +108,24 @@ class User(AbstractUser):
help_text="The means through which this user was verified",
)
@property
def finished_setup(self):
"""
Tracks if the user finished their profile setup or not. This is so
we can globally enforce that new users provide additional account information before proceeding.
"""
# Change this to self once the user and contact objects are merged.
# For now, since they are linked, lets test on the underlying contact object.
user_info = self.contact # noqa
user_values = [
user_info.first_name,
user_info.last_name,
user_info.title,
user_info.phone,
]
return None not in user_values
def __str__(self):
# this info is pulled from Login.gov
if self.first_name or self.last_name: