Add support for loading template field from the database
This commit is contained in:
parent
bb3461cf81
commit
0175fc4b06
1 changed files with 3 additions and 0 deletions
|
|
@ -125,6 +125,9 @@ def update_template_field(frontend_template, key, value_dict):
|
|||
template_field["value"] = ""
|
||||
template_field["file_path"] = file_path_value
|
||||
|
||||
if "load_from_db" in value_dict and value_dict["load_from_db"]:
|
||||
template_field["load_from_db"] = value_dict["load_from_db"]
|
||||
|
||||
|
||||
def get_file_path_value(file_path):
|
||||
"""Get the file path value if the file exists, else return empty string."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue