File: _wtforms_compat.py

package info (click to toggle)
flask-peewee 3.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,136 kB
  • sloc: javascript: 9,322; python: 3,904; makefile: 135; sh: 16
file content (5 lines) | stat: -rw-r--r-- 183 bytes parent folder | download
1
2
3
4
5
# Helpers to work around wtforms 2/3 differences.
try:
    from wtforms.validators import DataRequired
except ImportError:
    from wtforms.validators import Required as DataRequired