diff --git a/graphene_django/types.py b/graphene_django/types.py index 509991c9..329ecf98 100644 --- a/graphene_django/types.py +++ b/graphene_django/types.py @@ -7,7 +7,7 @@ import graphene from graphene.relay import Connection, Node from graphene.types.objecttype import ObjectType, ObjectTypeOptions -from graphene.types.union import Union +from graphene.types.union import Union, UnionOptions from graphene.types.utils import yank_fields_from_attrs from .converter import convert_django_field_with_choices @@ -294,7 +294,7 @@ def get_node(cls, info, id): return None -class DjangoUnionTypeOptions(ObjectTypeOptions): +class DjangoUnionTypeOptions(UnionOptions, ObjectTypeOptions): model = None # type: Type[Model] registry = None # type: Registry connection = None # type: Type[Connection]