Fix typo when getting app instance

This commit is contained in:
Lance Edgar 2024-04-16 20:10:10 -05:00
parent b37981e83f
commit 9065f42195

View file

@ -1156,7 +1156,7 @@ class Form(object):
value = self.obtain_value(record, field_name) value = self.obtain_value(record, field_name)
if value is None: if value is None:
return "" return ""
app = self.get_rattail_app() app = self.request.rattail_config.get_app()
value = app.localtime(value) value = app.localtime(value)
return raw_datetime(self.request.rattail_config, value) return raw_datetime(self.request.rattail_config, value)
@ -1186,7 +1186,7 @@ class Form(object):
value = self.obtain_value(obj, field) value = self.obtain_value(obj, field)
if value is None: if value is None:
return "" return ""
app = self.get_rattail_app() app = self.request.rattail_config.get_app()
return app.render_quantity(value) return app.render_quantity(value)
def render_percent(self, obj, field): def render_percent(self, obj, field):