Skip to content

Commit

Permalink
Merge pull request #150 from cyhuang1230/fix/get_queryset
Browse files Browse the repository at this point in the history
Fix missing get_queryset method in DjangoObjectType
  • Loading branch information
eamigo86 authored Aug 10, 2020
2 parents 8bd4e65 + be073a1 commit abb5a33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions graphene_django_extras/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def is_type_of(cls, root, info):
raise Exception(('Received incompatible instance "{}".').format(root))
return isinstance(root, cls._meta.model)

@classmethod
def get_queryset(cls, queryset, info):
return queryset

@classmethod
def get_node(cls, info, id):
try:
Expand Down

0 comments on commit abb5a33

Please sign in to comment.