Updated setup file, fixed djangofilterconnectionfields

This commit is contained in:
Mardanov Timur Rustemovich 2018-12-02 02:21:27 +03:00
parent 850cbf92c2
commit 17cf3583c9
2 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ def convert_field_to_list_or_connection(field, registry=None):
if _type._meta.connection:
# Use a DjangoFilterConnectionField if there are
# defined filter_fields in the DjangoObjectType Meta
if _type._meta.filter_fields:
if _type._meta.neomodel_filter_fields:
from .filter.fields import DjangoFilterConnectionField # noqa
return DjangoFilterConnectionField(_type)

View File

@ -13,6 +13,7 @@ with open("graphene_django/__init__.py", "rb") as f:
rest_framework_require = ["djangorestframework>=3.6.3"]
neomodel_require = [
"neomodel==3.3.0",
]
tests_require = [
@ -23,13 +24,12 @@ tests_require = [
"pytz",
"django-filter<2;python_version<'3'",
"pytest-django>=3.3.2",
*neomodel_require,
] + rest_framework_require
setup(
name="graphene-django",
version=version,
description="Graphene Django integration",
description="Graphene Django-Neo4J(neomodel) integration",
long_description=open("README.rst").read(),
url="https://github.com/graphql-python/graphene-django",
author="Syrus Akbary",