Skip to content

Commit

Permalink
Merge pull request #93 from aldarund/patch-2
Browse files Browse the repository at this point in the history
fix: AttributeError: 'Registry' object has no attribute 'get_type'.
  • Loading branch information
eamigo86 authored Dec 23, 2018
2 parents d352c71 + ad45c03 commit e043a1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphene_django_extras/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def dynamic_type():
required=is_required(field) and input_flag == 'create'
)

_type = registry.get_type(model, _type=input_flag)
_type = registry.get_type_for_model(model, for_input=input_flag)
if not _type:
return

Expand Down Expand Up @@ -404,7 +404,7 @@ def dynamic_type():
if input_flag:
return

_type = registry.get_type(model)
_type = registry.get_type_for_model(model)
if not _type:
return
return DjangoListField(_type)
Expand Down

0 comments on commit e043a1a

Please sign in to comment.