Fix typo when getting app instance
This commit is contained in:
parent
b37981e83f
commit
9065f42195
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue