Commit e63acc59 authored by 赵杰's avatar 赵杰

Merge remote-tracking branch 'origin/manage-public' into manage-public

parents fba17062 7c866808
...@@ -329,9 +329,10 @@ def make_app_report(args): ...@@ -329,9 +329,10 @@ def make_app_report(args):
FundReportManange.type == 1, FundReportManange.type == 1,
FundReportManange.default == 1 FundReportManange.default == 1
)).first() )).first()
if template.default_template: default_template = ""
if template and template.default_template:
default_template = json.loads(template.default_template) default_template = json.loads(template.default_template)
else: elif template:
default_template = json.loads(template.custom_template) default_template = json.loads(template.custom_template)
# save_pdf.delay(record_id, ifa_id, customer_id, pdf_name, type) # save_pdf.delay(record_id, ifa_id, customer_id, pdf_name, type)
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment