From 8928d03cefa7956b22445a8f72981d8fd2471e26 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 4 Nov 2015 22:30:30 -0600 Subject: [PATCH] Work around formalchemy config bug, caused by edbob. --- tailbone/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tailbone/app.py b/tailbone/app.py index b94cd443..2d2f86fe 100644 --- a/tailbone/app.py +++ b/tailbone/app.py @@ -132,6 +132,9 @@ def make_pyramid_config(settings): formalchemy.config.engine = TemplateEngine() formalchemy.FieldSet.default_renderers[sa.Boolean] = renderers.YesNoFieldRenderer 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 return config