mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-21 14:02:48 +03:00
refactor middleware
This commit is contained in:
parent
c27dd6c732
commit
fba274dc4d
|
@ -293,6 +293,7 @@ class DjangoObjectType(ObjectType):
|
|||
return queryset.aget(pk=id)
|
||||
|
||||
return queryset.get(pk=id)
|
||||
|
||||
except cls._meta.model.DoesNotExist:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user