Add CustomFieldRenderer
and DateFieldRenderer
.
This commit is contained in:
parent
6feb488884
commit
3d44e3e857
4 changed files with 100 additions and 1 deletions
tailbone
|
@ -130,6 +130,7 @@ def make_pyramid_config(settings):
|
|||
# Configure FormAlchemy.
|
||||
formalchemy.config.engine = TemplateEngine()
|
||||
formalchemy.FieldSet.default_renderers[sa.Boolean] = renderers.YesNoFieldRenderer
|
||||
formalchemy.FieldSet.default_renderers[sa.Date] = renderers.DateFieldRenderer
|
||||
formalchemy.FieldSet.default_renderers[GPCType] = renderers.GPCFieldRenderer
|
||||
|
||||
return config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue