fix(exceptions): change exception message string to exclude field_name
This commit is contained in:
@@ -35,7 +35,7 @@ def _to_str_list(value: str | ErrorDetail | list | tuple | dict) -> list[str]:
|
||||
if field in ("non_field_errors", "__all__"):
|
||||
items.append(str(msg))
|
||||
else:
|
||||
items.append(f"{field}: {msg}")
|
||||
items.append(f"{msg}")
|
||||
return items
|
||||
return [str(value)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user