mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +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:
|
||||
# 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)
|
||||
|
|
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"]
|
||||
|
||||
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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user