From ff1e28a6e9d7c3c17352ac03017729383e0362c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Chamena?= <43488475+sebach1@users.noreply.github.com> Date: Tue, 28 May 2019 22:48:32 -0300 Subject: [PATCH] Update types.py --- graphene_mongo/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_mongo/types.py b/graphene_mongo/types.py index b769913f..36cb65dd 100644 --- a/graphene_mongo/types.py +++ b/graphene_mongo/types.py @@ -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) \