mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-09-30 16:06:52 +03:00
feat: MW-6092 override CustomField to be nullable
This commit is contained in:
parent
f02ea337a2
commit
7ba6af394e
|
@ -330,7 +330,7 @@ def convert_onetoone_field_to_djangomodel(field, registry=None):
|
||||||
|
|
||||||
return CustomField(
|
return CustomField(
|
||||||
_type,
|
_type,
|
||||||
required=not field.null,
|
required=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
return Dynamic(dynamic_type)
|
return Dynamic(dynamic_type)
|
||||||
|
@ -465,7 +465,7 @@ def convert_field_to_djangomodel(field, registry=None):
|
||||||
return CustomField(
|
return CustomField(
|
||||||
_type,
|
_type,
|
||||||
description=get_django_field_description(field),
|
description=get_django_field_description(field),
|
||||||
required=not field.null,
|
required=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
return Dynamic(dynamic_type)
|
return Dynamic(dynamic_type)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user