From cff6ec199cff41629ede2f92641f353b8e7f5941 Mon Sep 17 00:00:00 2001 From: "eamigo@nauta.cu" Date: Fri, 24 Aug 2018 21:06:35 +0200 Subject: [PATCH] Fixed minor bug with nested_fields for mutations. Updated dependencies to avoid errors with CharField with choices and blank=True reported for graphql-core. --- graphene_django_extras/__init__.py | 2 +- graphene_django_extras/mutation.py | 2 +- graphene_django_extras/types.py | 2 +- setup.py | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/graphene_django_extras/__init__.py b/graphene_django_extras/__init__.py index 82f432c..cf7003c 100644 --- a/graphene_django_extras/__init__.py +++ b/graphene_django_extras/__init__.py @@ -9,7 +9,7 @@ from .paginations import LimitOffsetGraphqlPagination, PageGraphqlPagination, CursorGraphqlPagination from .types import DjangoObjectType, DjangoInputObjectType, DjangoListObjectType, DjangoSerializerType -VERSION = (0, 3, 8, 'alpha', '10') +VERSION = (0, 3, 8, 'alpha', '11') __version__ = get_version(VERSION) diff --git a/graphene_django_extras/mutation.py b/graphene_django_extras/mutation.py index 274795f..87a3ac9 100644 --- a/graphene_django_extras/mutation.py +++ b/graphene_django_extras/mutation.py @@ -92,7 +92,7 @@ def __init_subclass_with_meta__(cls, serializer_class=None, only_fields=(), excl input_type = registry.get_type_for_model(model, for_input=operation) if not input_type: - factory_kwargs.update({'skip_registry': True}) + # factory_kwargs.update({'skip_registry': True}) input_type = factory_type('input', DjangoInputObjectType, operation, **factory_kwargs) global_arguments[operation].update({ diff --git a/graphene_django_extras/types.py b/graphene_django_extras/types.py index e604ef2..579f013 100644 --- a/graphene_django_extras/types.py +++ b/graphene_django_extras/types.py @@ -362,7 +362,7 @@ def __init_subclass_with_meta__(cls, serializer_class=None, queryset=None, only_ input_type = registry.get_type_for_model(model, for_input=operation) if not input_type: - factory_kwargs.update({'skip_registry': True}) + # factory_kwargs.update({'skip_registry': True}) input_type = factory_type('input', DjangoInputObjectType, operation, **factory_kwargs) global_arguments[operation].update({ diff --git a/setup.py b/setup.py index 66757e7..00f48c3 100644 --- a/setup.py +++ b/setup.py @@ -55,7 +55,9 @@ def get_packages(): packages=get_packages(), install_requires=[ - 'graphene-django>=2.1.0', + 'graphql-core==2.0', + 'graphene==2.1', + 'graphene-django==2.0', 'django-filter==1.1.0', 'djangorestframework>=3.6.0' ],