File tree 1 file changed +1
-14
lines changed
1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -577,20 +577,7 @@ class FileField(WtfFieldMixin, fields.FileField):
577
577
All arguments should be passed as keyword arguments, to exclude unexpected behaviour.
578
578
"""
579
579
580
- DEFAULT_WTF_FIELD = wtf_fields .FileField if wtf_fields else None
581
-
582
- def to_wtf_field (
583
- self ,
584
- * ,
585
- model : Optional [Type ] = None ,
586
- field_kwargs : Optional [dict ] = None ,
587
- ):
588
- """
589
- Protection from execution of :func:`to_wtf_field` in form generation.
590
-
591
- :raises NotImplementedError: Field converter to WTForm Field not implemented.
592
- """
593
- raise NotImplementedError ("Field converter to WTForm Field not implemented." )
580
+ DEFAULT_WTF_FIELD = custom_fields .MongoFileField if custom_fields else None
594
581
595
582
596
583
class FloatField (WtfFieldMixin , fields .FloatField ):
You can’t perform that action at this time.
0 commit comments