Skip to content

Commit 45f969f

Browse files
committed
Drop undocumented features from 1.0.0 code
1 parent 19f57bb commit 45f969f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

flask_mongoengine/wtf/orm.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,10 @@ def _process_convert_for_choice_fields(self, field, field_class, kwargs):
8686

8787
@orm_deprecated
8888
def convert(self, model, field, field_args):
89-
if hasattr(field, "to_form_field"):
90-
return field.to_form_field(model, field_args)
91-
9289
field_class = type(field).__name__
9390

9491
if field_class not in self.converters:
95-
raise NotImplementedError(
96-
f"No converter for: {field_class}, exclude it from form generation."
97-
)
92+
return None
9893

9994
kwargs = self._generate_convert_base_kwargs(field, field_args)
10095

0 commit comments

Comments
 (0)