Skip to content

Commit

Permalink
Fixed minor bug with nested_fields for mutations.
Browse files Browse the repository at this point in the history
Updated dependencies to avoid errors with CharField with choices and blank=True reported for graphql-core.
  • Loading branch information
[email protected] committed Aug 24, 2018
1 parent bec650f commit cff6ec1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion graphene_django_extras/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion graphene_django_extras/mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion graphene_django_extras/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
],
Expand Down

0 comments on commit cff6ec1

Please sign in to comment.