mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-14 02:02:20 +03:00
Updated setup file, fixed djangofilterconnectionfields
This commit is contained in:
parent
850cbf92c2
commit
17cf3583c9
|
@ -203,7 +203,7 @@ def convert_field_to_list_or_connection(field, registry=None):
|
||||||
if _type._meta.connection:
|
if _type._meta.connection:
|
||||||
# Use a DjangoFilterConnectionField if there are
|
# Use a DjangoFilterConnectionField if there are
|
||||||
# defined filter_fields in the DjangoObjectType Meta
|
# defined filter_fields in the DjangoObjectType Meta
|
||||||
if _type._meta.filter_fields:
|
if _type._meta.neomodel_filter_fields:
|
||||||
from .filter.fields import DjangoFilterConnectionField # noqa
|
from .filter.fields import DjangoFilterConnectionField # noqa
|
||||||
|
|
||||||
return DjangoFilterConnectionField(_type)
|
return DjangoFilterConnectionField(_type)
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -13,6 +13,7 @@ with open("graphene_django/__init__.py", "rb") as f:
|
||||||
rest_framework_require = ["djangorestframework>=3.6.3"]
|
rest_framework_require = ["djangorestframework>=3.6.3"]
|
||||||
|
|
||||||
neomodel_require = [
|
neomodel_require = [
|
||||||
|
"neomodel==3.3.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
tests_require = [
|
tests_require = [
|
||||||
|
@ -23,13 +24,12 @@ tests_require = [
|
||||||
"pytz",
|
"pytz",
|
||||||
"django-filter<2;python_version<'3'",
|
"django-filter<2;python_version<'3'",
|
||||||
"pytest-django>=3.3.2",
|
"pytest-django>=3.3.2",
|
||||||
*neomodel_require,
|
|
||||||
] + rest_framework_require
|
] + rest_framework_require
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="graphene-django",
|
name="graphene-django",
|
||||||
version=version,
|
version=version,
|
||||||
description="Graphene Django integration",
|
description="Graphene Django-Neo4J(neomodel) integration",
|
||||||
long_description=open("README.rst").read(),
|
long_description=open("README.rst").read(),
|
||||||
url="https://github.com/graphql-python/graphene-django",
|
url="https://github.com/graphql-python/graphene-django",
|
||||||
author="Syrus Akbary",
|
author="Syrus Akbary",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user