Change to person.contact_id and related bug fixes.

This commit is contained in:
Scott Idem
2021-08-08 11:54:57 -04:00
parent 65b5e6ade6
commit 3310d9fc8b
3 changed files with 6 additions and 6 deletions

View File

@@ -323,7 +323,7 @@ def create_person_obj(person_obj_new:Person_Base):
# Need to update the person with the new contact_id
person_obj_up = {}
person_obj_up['id'] = person_id
person_obj_up['contact_id'] = contact_id
person_obj_up['contact_id_old'] = contact_id
if person_obj_up_result := sql_update(data=person_obj_up, table_name='person'): pass
else:
return False

View File

@@ -49,7 +49,7 @@ class Cont_Edu_Cert_Person_Base(BaseModel):
full_name: Optional[str]
informal_full_name: Optional[str]
last_first_name: Optional[str]
display_name: Optional[str]
display_name: Optional[str] # Custom whatever they want for public display
title: Optional[str]

View File

@@ -49,10 +49,10 @@ class Person_Base(BaseModel):
prefix: Optional[str]
suffix: Optional[str]
full_name: Optional[str]
informal_full_name: Optional[str]
last_first_name: Optional[str]
display_name: Optional[str]
full_name: Optional[str] # May be auto created from informal, given, family, etc if not given
informal_full_name: Optional[str] # Auto created
last_first_name: Optional[str] # Auto created
display_name: Optional[str] # Custom whatever they want for public display
title: Optional[str]