fix(exceptions): change exception message string to exclude field_name

This commit is contained in:
2026-05-03 18:22:36 +03:30
parent 8ff1e4fa61
commit f04e9ba828

View File

@@ -35,7 +35,7 @@ def _to_str_list(value: str | ErrorDetail | list | tuple | dict) -> list[str]:
if field in ("non_field_errors", "__all__"): if field in ("non_field_errors", "__all__"):
items.append(str(msg)) items.append(str(msg))
else: else:
items.append(f"{field}: {msg}") items.append(f"{msg}")
return items return items
return [str(value)] return [str(value)]