We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fec116 commit 66933beCopy full SHA for 66933be
flask_mongoengine/wtf/orm.py
@@ -89,7 +89,7 @@ def convert(self, model, field, field_args):
89
if hasattr(field, "to_form_field"):
90
return field.to_form_field(model, kwargs)
91
92
- if type(field.field) == ReferenceField:
+ if hasattr(field, 'field') and type(field.field) == ReferenceField:
93
kwargs["label_modifier"] = getattr(
94
model, field.name + "_label_modifier", None
95
)
0 commit comments