From 9065f42195f1d64bb02452727fb6acf44b280623 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 16 Apr 2024 20:10:10 -0500 Subject: [PATCH] Fix typo when getting app instance --- tailbone/forms/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tailbone/forms/core.py b/tailbone/forms/core.py index 9624f6fb..496d59ee 100644 --- a/tailbone/forms/core.py +++ b/tailbone/forms/core.py @@ -1156,7 +1156,7 @@ class Form(object): value = self.obtain_value(record, field_name) if value is None: return "" - app = self.get_rattail_app() + app = self.request.rattail_config.get_app() value = app.localtime(value) return raw_datetime(self.request.rattail_config, value) @@ -1186,7 +1186,7 @@ class Form(object): value = self.obtain_value(obj, field) if value is None: return "" - app = self.get_rattail_app() + app = self.request.rattail_config.get_app() return app.render_quantity(value) def render_percent(self, obj, field):