Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Make a note about with_options becoming obsosolete
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Dec 16, 2015
1 parent 69a22c7 commit f9a1ef6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions onegov/form/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ def with_options(widget, **render_options):
field = StringField(widget=with_options(TextArea, class_="markdown"))
Note: With wtforms 2.1 this is no longer necssary. Instead use the
render_kw parameter of the field class. This function will be deprecated
in a future release.
"""

if inspect.isclass(widget):
Expand Down

0 comments on commit f9a1ef6

Please sign in to comment.