From f04e9ba82899a52818d588f2de8f43b241064ea7 Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Sun, 3 May 2026 18:22:36 +0330 Subject: [PATCH] fix(exceptions): change exception message string to exclude field_name --- core/exceptions/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/exceptions/handlers.py b/core/exceptions/handlers.py index 9524ad6..e6ad259 100644 --- a/core/exceptions/handlers.py +++ b/core/exceptions/handlers.py @@ -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)]