Change to person.contact_id and related bug fixes.
This commit is contained in:
@@ -323,7 +323,7 @@ def create_person_obj(person_obj_new:Person_Base):
|
|||||||
# Need to update the person with the new contact_id
|
# Need to update the person with the new contact_id
|
||||||
person_obj_up = {}
|
person_obj_up = {}
|
||||||
person_obj_up['id'] = person_id
|
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
|
if person_obj_up_result := sql_update(data=person_obj_up, table_name='person'): pass
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class Cont_Edu_Cert_Person_Base(BaseModel):
|
|||||||
full_name: Optional[str]
|
full_name: Optional[str]
|
||||||
informal_full_name: Optional[str]
|
informal_full_name: Optional[str]
|
||||||
last_first_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]
|
title: Optional[str]
|
||||||
|
|
||||||
|
|||||||
@@ -49,10 +49,10 @@ class Person_Base(BaseModel):
|
|||||||
prefix: Optional[str]
|
prefix: Optional[str]
|
||||||
suffix: Optional[str]
|
suffix: Optional[str]
|
||||||
|
|
||||||
full_name: Optional[str]
|
full_name: Optional[str] # May be auto created from informal, given, family, etc if not given
|
||||||
informal_full_name: Optional[str]
|
informal_full_name: Optional[str] # Auto created
|
||||||
last_first_name: Optional[str]
|
last_first_name: Optional[str] # Auto created
|
||||||
display_name: Optional[str]
|
display_name: Optional[str] # Custom whatever they want for public display
|
||||||
|
|
||||||
title: Optional[str]
|
title: Optional[str]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user