Skip to content

Commit bd7ff7e

Browse files
committed
Merge pull request #128 from icoz/master
Fix for issue #110
2 parents 568292d + b0ab909 commit bd7ff7e

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
@@ -230,7 +230,7 @@ def model_fields(model, only=None, exclude=None, field_args=None, converter=None
230230
names = ((k, v.creation_counter) for k, v in model._fields.items())
231231
else:
232232
names = ((k, v.creation_counter) for k, v in model._fields.iteritems())
233-
field_names = map(itemgetter(0), sorted(names, key=itemgetter(1)))
233+
field_names = [x for x in map(itemgetter(0), sorted(names, key=itemgetter(1)))]
234234

235235
if only:
236236
field_names = [x for x in only if x in set(field_names)]

0 commit comments

Comments
 (0)