Skip to content

Commit 2512df3

Browse files
committed
Add UnionOptions to DjangoUnionTypeOptions inheritance list
this change makes things more consistent and prevent possible issues with 3rd party libraries
1 parent a5f0598 commit 2512df3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene_django/types.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import graphene
88
from graphene.relay import Connection, Node
99
from graphene.types.objecttype import ObjectType, ObjectTypeOptions
10-
from graphene.types.union import Union
10+
from graphene.types.union import Union, UnionOptions
1111
from graphene.types.utils import yank_fields_from_attrs
1212

1313
from .converter import convert_django_field_with_choices
@@ -294,7 +294,7 @@ def get_node(cls, info, id):
294294
return None
295295

296296

297-
class DjangoUnionTypeOptions(ObjectTypeOptions):
297+
class DjangoUnionTypeOptions(UnionOptions, ObjectTypeOptions):
298298
model = None # type: Type[Model]
299299
registry = None # type: Registry
300300
connection = None # type: Type[Connection]

0 commit comments

Comments
 (0)