pallets-eco/wtforms

tlhlh

Closed this issue · 1 comments

Actual Behavior

# Paste a minimal piece of code that causes the problem:
#  - try to avoid using side projects like flask-wtf
#    or wtforms-alchemy in your sample ;
#  - delete all the irrelevant code (comments, irrelevant fields etc.).
# Here is an example:

>>> import wtforms
>>> class F(wtforms.Form):
...     foo = wtforms.StringField()
>>> f = F(foo="bar")
>>> print(f.foo.shrug)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'StringField' object has no attribute 'shrug'

Expected Behavior

# Show us, and explain what behavior you would have expected.
# Here is an example:

>>> import wtforms
>>> class F(wtforms.Form):
...     foo = wtforms.StringField()
>>> f = F(foo="bar")
>>> print(f.foo.shrug)
¯\_()_/¯

Environment

  • Python version:
  • wtforms version:

Are you trolling?