Skip to content

Commit

Permalink
Update types.py
Browse files Browse the repository at this point in the history
  • Loading branch information
schattian authored May 29, 2019
1 parent f4c48cc commit ff1e28a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_mongo/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def construct_fields(model, registry, only_fields, exclude_fields):
if isinstance(field, mongoengine.ListField):
if not field.field:
continue
# Take care of list of self-reference.
# Take care of list of self-reference.
document_type_obj = field.field.__dict__.get('document_type_obj', None)
if document_type_obj == model._class_name \
or isinstance(document_type_obj, model) \
Expand Down

0 comments on commit ff1e28a

Please sign in to comment.