Skip to content

Commit 66933be

Browse files
committed
correction
1 parent 6fec116 commit 66933be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_mongoengine/wtf/orm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def convert(self, model, field, field_args):
8989
if hasattr(field, "to_form_field"):
9090
return field.to_form_field(model, kwargs)
9191

92-
if type(field.field) == ReferenceField:
92+
if hasattr(field, 'field') and type(field.field) == ReferenceField:
9393
kwargs["label_modifier"] = getattr(
9494
model, field.name + "_label_modifier", None
9595
)

0 commit comments

Comments
 (0)