mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-14 06:04:23 +03:00
Cast translated description for DecimalField
https://github.com/graphql-python/graphene-django/pull/976 casts all the description fields to strings to prevent schema printing from failing whenever the description is a lazy translated string. The `DecimalField` however got in after the v3 merge and it currently misses the cast.
This commit is contained in:
parent
e7f7d8da07
commit
00ac51c83d
|
@ -205,7 +205,7 @@ def convert_field_to_boolean(field, registry=None):
|
|||
|
||||
@convert_django_field.register(models.DecimalField)
|
||||
def convert_field_to_decimal(field, registry=None):
|
||||
return Decimal(description=field.help_text, required=not field.null)
|
||||
return Decimal(description=get_django_field_description(field), required=not field.null)
|
||||
|
||||
|
||||
@convert_django_field.register(models.FloatField)
|
||||
|
|
Loading…
Reference in New Issue
Block a user