mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
fixed converter
This commit is contained in:
parent
d1cefbef17
commit
c434fa9387
|
@ -166,7 +166,7 @@ def convert_date_to_string(field, registry=None):
|
|||
|
||||
@convert_django_field.register(RelationshipDefinition)
|
||||
def convert_onetoone_field_to_djangomodel(field, registry=None):
|
||||
model = field.definition['node_class']
|
||||
model = registry.get_model_by_string(field._raw_class)
|
||||
|
||||
def dynamic_type():
|
||||
_type = registry.get_type_for_model(model)
|
||||
|
|
Loading…
Reference in New Issue
Block a user