From 0744aeb42f22c7017671f8580d6dfab34bdd4797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 26 Jan 2018 09:37:25 +0100 Subject: [PATCH] =?UTF-8?q?app=20=E2=86=92=20current=5Fapp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'app' doesn't exist. --- pillar/web/nodes/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/web/nodes/forms.py b/pillar/web/nodes/forms.py index 714d3779..243d7b1a 100644 --- a/pillar/web/nodes/forms.py +++ b/pillar/web/nodes/forms.py @@ -258,7 +258,7 @@ def process_node_form(form, node_id=None, node_type=None, user=None): if data == '': data = [] 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 data == '': data = None