Fix error message formatting in ErrorType class

This commit is contained in:
Ariel 2024-04-05 20:26:20 +02:00
parent e4e8c818e4
commit b76d22a67a

View File

@ -481,5 +481,5 @@ class ErrorType(ObjectType):
for key, values in errors.as_data().items()
}
return [cls(field=key,
messages=[str(value) for value in values],
messages=[value.message % value.params for value in values],
codes=[value.code for value in values]) for key, values in data.items()]