mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 17:47:12 +03:00
fix order in params
This commit is contained in:
parent
f76f38ef30
commit
f3144bf996
|
@ -114,7 +114,7 @@ method to your ``DjangoObjectType``.
|
||||||
interfaces = (relay.Node, )
|
interfaces = (relay.Node, )
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_node(cls, id, info):
|
def get_node(cls, info, id):
|
||||||
try:
|
try:
|
||||||
post = cls._meta.model.objects.get(id=id)
|
post = cls._meta.model.objects.get(id=id)
|
||||||
except cls._meta.model.DoesNotExist:
|
except cls._meta.model.DoesNotExist:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user