app → current_app

'app' doesn't exist.
This commit is contained in:
2018-01-26 09:37:25 +01:00
parent ae7489d8e7
commit 0744aeb42f

View File

@@ -258,7 +258,7 @@ def process_node_form(form, node_id=None, node_type=None, user=None):
if data == '': if data == '':
data = [] data = []
if schema_prop['type'] == 'datetime': if schema_prop['type'] == 'datetime':
data = datetime.strftime(data, app.config['RFC1123_DATE_FORMAT']) data = datetime.strftime(data, current_app.config['RFC1123_DATE_FORMAT'])
if schema_prop['type'] == 'objectid': if schema_prop['type'] == 'objectid':
if data == '': if data == '':
data = None data = None