From 995150bfa5d451dd1d10b79a213a8763cb51f4d0 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Fri, 17 Jun 2016 01:27:05 -0700 Subject: [PATCH] Improved is_graphene_type --- graphene/utils/is_graphene_type.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/graphene/utils/is_graphene_type.py b/graphene/utils/is_graphene_type.py index 8d24b50f..384f1b6c 100644 --- a/graphene/utils/is_graphene_type.py +++ b/graphene/utils/is_graphene_type.py @@ -11,9 +11,7 @@ def is_graphene_type(_type): from ..relay.mutation import ClientIDMutation from ..relay.connection import Connection - if _type in [Interface, InputObjectType, ObjectType, Mutation, ClientIDMutation, Connection]: - return False - return inspect.isclass(_type) and issubclass(_type, ( + return inspect.isclass(_type) and hasattr(_type, '_meta') and issubclass(_type, ( Interface, ObjectType, InputObjectType,