Save before hosted_file_link DB field name changes.
This commit is contained in:
@@ -175,17 +175,6 @@ def load_account_obj(
|
||||
account_obj.archive_list = archive_dict_list
|
||||
else: account_obj.archive_list = []
|
||||
|
||||
# if inc_contact_list:
|
||||
# if contact_dict_list := load_contact_obj_list(
|
||||
# account_id = account_id,
|
||||
# limit = limit,
|
||||
# model_as_dict = model_as_dict,
|
||||
# enabled = enabled,
|
||||
# inc_address = inc_address,
|
||||
# ):
|
||||
# account_obj.contact_list = contact_dict_list
|
||||
# else: account_obj.contact_list = []
|
||||
|
||||
# Updated 2021-06-17
|
||||
if inc_contact_list:
|
||||
if contact_rec_list_result := get_contact_rec_list(
|
||||
@@ -247,6 +236,28 @@ def load_account_obj(
|
||||
account_obj.event_list = event_dict_list
|
||||
else: account_obj.event_list = []
|
||||
|
||||
# Updated 2021-06-17
|
||||
if inc_hosted_file_list:
|
||||
if hosted_file_rec_list_result := get_hosted_file_rec_list(
|
||||
for_obj_type = 'account',
|
||||
for_obj_id = account_id,
|
||||
limit = limit,
|
||||
enabled = enabled,
|
||||
):
|
||||
hosted_file_dict_list = []
|
||||
for hosted_file_rec in hosted_file_rec_list_result:
|
||||
hosted_file_dict_list.append(
|
||||
load_hosted_file_obj(
|
||||
hosted_file_id = hosted_file_rec.get('hosted_file_id', None),
|
||||
limit = limit,
|
||||
model_as_dict = model_as_dict,
|
||||
enabled = enabled,
|
||||
inc_hosted_file_link_list = inc_hosted_file_line_list,
|
||||
)
|
||||
)
|
||||
account_obj.hosted_file_list = hosted_file_dict_list
|
||||
else: account_obj.hosted_file_list = []
|
||||
|
||||
# Updated 2021-06-17
|
||||
if inc_order_list:
|
||||
if order_rec_list_result := get_order_rec_list(
|
||||
|
||||
Reference in New Issue
Block a user