Skip to content

Commit

Permalink
mongoengine 29
Browse files Browse the repository at this point in the history
  • Loading branch information
idocyabra committed Oct 30, 2024
1 parent dd90ebf commit 9cab231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_mongoengine/wtf/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def process_formdata(self, valuelist):


# noinspection PyAttributeOutsideInit
class NoneStringField(wtf_fields.StringField()):
class NoneStringField(wtf_fields.StringField):
"""
Custom StringField that counts "" as None
"""
Expand Down Expand Up @@ -387,7 +387,7 @@ class MongoSearchField(EmptyStringIsNoneMixin, wtf_fields.SearchField):
pass


class MongoStringField(EmptyStringIsNoneMixin, wtf_fields.StringField()):
class MongoStringField(EmptyStringIsNoneMixin, wtf_fields.StringField):
"""
Regular :class:`wtforms.fields.StringField`, that transform empty string to `None`.
"""
Expand Down

0 comments on commit 9cab231

Please sign in to comment.