Improved function calling

This commit is contained in:
Syrus Akbary 2015-11-03 21:48:13 -08:00
parent 898329c240
commit b6df2d881d

View File

@ -176,12 +176,12 @@ class BaseObjectType(object):
for f in cls._meta.fields])
@classmethod
def resolve_objecttype(cls, schema, instance, *_):
def resolve_objecttype(cls, schema, instance, *args):
return instance.__class__
@classmethod
def resolve_type(cls, schema, instance, *_):
objecttype = cls.resolve_objecttype(schema, instance, *_)
def resolve_type(cls, schema, instance, *args):
objecttype = cls.resolve_objecttype(schema, instance, *args)
return schema.T(objecttype)
@classmethod