mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
Merge branch 'next-typemap-duplicate'
This commit is contained in:
commit
061c33f8d6
|
@ -118,6 +118,8 @@ class TypeMap(GraphQLTypeMap):
|
||||||
|
|
||||||
def construct_objecttype(self, map, type):
|
def construct_objecttype(self, map, type):
|
||||||
from .definitions import GrapheneObjectType
|
from .definitions import GrapheneObjectType
|
||||||
|
if type._meta.name in map:
|
||||||
|
return map
|
||||||
map[type._meta.name] = GrapheneObjectType(
|
map[type._meta.name] = GrapheneObjectType(
|
||||||
graphene_type=type,
|
graphene_type=type,
|
||||||
name=type._meta.name,
|
name=type._meta.name,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user