Skip to content

Commit 01de48c

Browse files
committed
Use SA Column.doc for WTForm Field.description
1 parent b24955e commit 01de48c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Unreleased
2727
- Explicitly check if db_session is None in converter. (`#17`_)
2828
- Check for ``sqlalchemy.`` to avoid matching packages with names starting
2929
with ``sqlalchemy`` (6237a0f_)
30+
- Use SQLAlchemy's Column.doc for WTForm's Field.description
3031

3132
.. _#2: https://github.com/wtforms/wtforms-sqlalchemy/pull/2
3233
.. _#3: https://github.com/wtforms/wtforms-sqlalchemy/pull/3

wtforms_sqlalchemy/orm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def convert(self, model, mapper, prop, field_args, db_session=None):
8181
'validators': [],
8282
'filters': [],
8383
'default': None,
84+
'description': prop.doc,
8485
}
8586

8687
if field_args:

0 commit comments

Comments
 (0)