Update types.py (#36)

This commit is contained in:
arielRevo 2024-04-05 18:14:13 +02:00 committed by GitHub
parent b3b3a9094e
commit e4e8c818e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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