mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-01-27 01:34:09 +03:00
Fixed returns in class init
This commit is contained in:
parent
d73f4aa235
commit
775221c427
|
@ -12,7 +12,7 @@ from .utils import DJANGO_FILTER_INSTALLED, maybe_queryset
|
|||
class DjangoListField(Field):
|
||||
|
||||
def __init__(self, _type, *args, **kwargs):
|
||||
return super(DjangoListField, self).__init__(List(_type), *args, **kwargs)
|
||||
super(DjangoListField, self).__init__(List(_type), *args, **kwargs)
|
||||
|
||||
@property
|
||||
def model(self):
|
||||
|
@ -30,7 +30,7 @@ class DjangoConnectionField(ConnectionField):
|
|||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.on = kwargs.pop('on', False)
|
||||
return super(DjangoConnectionField, self).__init__(*args, **kwargs)
|
||||
super(DjangoConnectionField, self).__init__(*args, **kwargs)
|
||||
|
||||
@property
|
||||
def model(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user