Field widget type hints in model classes, docstrings

10 views
Skip to first unread message

Moritz Schlarb

unread,
Apr 19, 2012, 4:08:05 AM4/19/12
to sp...@googlegroups.com
Hi!

I already tried to search the source, but I couldn't find a clue if that is possible:
Is it possible to include field widget type hints in the sqlalchemy model definitions using an extra argument to Column(...) ?
For example, I have some Enum types, that don't get rendered as SingleSelectFields by default.
Or yould I have to use an own WidgetSelector for that?

And - a little bit related, how could I use attribute docstrings from the model as the default help_text in sprox-based forms?

Thanks a lot,
Moritz
Reply all
Reply to author
Forward
0 new messages