Work around formalchemy config bug, caused by edbob.
This commit is contained in:
parent
be2a1ba862
commit
8928d03cef
|
@ -132,6 +132,9 @@ def make_pyramid_config(settings):
|
||||||
formalchemy.config.engine = TemplateEngine()
|
formalchemy.config.engine = TemplateEngine()
|
||||||
formalchemy.FieldSet.default_renderers[sa.Boolean] = renderers.YesNoFieldRenderer
|
formalchemy.FieldSet.default_renderers[sa.Boolean] = renderers.YesNoFieldRenderer
|
||||||
formalchemy.FieldSet.default_renderers[sa.Date] = renderers.DateFieldRenderer
|
formalchemy.FieldSet.default_renderers[sa.Date] = renderers.DateFieldRenderer
|
||||||
|
# TODO: Maybe implement our own some day, but for now we must include this
|
||||||
|
# DateTime fix to work around a bug in edbob code.
|
||||||
|
formalchemy.FieldSet.default_renderers[sa.DateTime] = formalchemy.DateTimeFieldRenderer
|
||||||
formalchemy.FieldSet.default_renderers[GPCType] = renderers.GPCFieldRenderer
|
formalchemy.FieldSet.default_renderers[GPCType] = renderers.GPCFieldRenderer
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|
Loading…
Reference in a new issue