Skip to content

Commit 7bd158c

Browse files
author
Sebastian Hernandez
committed
Merge fields used in meta attribute passed on DjangoObjectType
1 parent 4573d3d commit 7bd158c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

graphene_django/types.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ def __init_subclass_with_meta__(
261261
_meta.registry = registry
262262
_meta.filter_fields = filter_fields
263263
_meta.filterset_class = filterset_class
264-
_meta.fields = django_fields
264+
if _meta.fields:
265+
_meta.fields.update(django_fields)
266+
else:
267+
_meta.fields = fields
265268
_meta.connection = connection
266269

267270
super(DjangoObjectType, cls).__init_subclass_with_meta__(

0 commit comments

Comments
 (0)