mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-08 23:50:38 +03:00
pep8 fixes
This commit is contained in:
parent
377e3f66cd
commit
a5d73ac211
|
@ -10,4 +10,5 @@ from graphene.contrib.django.fields import (
|
||||||
)
|
)
|
||||||
|
|
||||||
__all__ = ['DjangoObjectType', 'DjangoNode', 'DjangoConnection',
|
__all__ = ['DjangoObjectType', 'DjangoNode', 'DjangoConnection',
|
||||||
'DjangoConnectionField', 'DjangoModelField']
|
'DjangoConnectionField', 'DjangoModelField',
|
||||||
|
'DjangoFilterConnectionField']
|
||||||
|
|
|
@ -11,6 +11,7 @@ except AttributeError:
|
||||||
# Improved compatibility for Django 1.6
|
# Improved compatibility for Django 1.6
|
||||||
class UUIDModelField(object):
|
class UUIDModelField(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class UUIDFormField(object):
|
class UUIDFormField(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -76,5 +77,3 @@ def convert_field_to_list_or_connection(field):
|
||||||
def convert_field_to_djangomodel(field):
|
def convert_field_to_djangomodel(field):
|
||||||
from .fields import DjangoModelField
|
from .fields import DjangoModelField
|
||||||
return DjangoModelField(field.related_model, description=field.help_text)
|
return DjangoModelField(field.related_model, description=field.help_text)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -87,4 +87,3 @@ class DjangoFilterConnectionField(DjangoConnectionField):
|
||||||
# Also add the 'order_by' field
|
# Also add the 'order_by' field
|
||||||
args[filterset_class.order_by_field] = Argument(String)
|
args[filterset_class.order_by_field] = Argument(String)
|
||||||
return args
|
return args
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user