This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new a96ca07  Remove the prefix for errors that apply to a whole form
a96ca07 is described below

commit a96ca070cca3bb5c868f638b5410bec596495e7a
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu Nov 13 11:37:44 2025 +0000

    Remove the prefix for errors that apply to a whole form
---
 atr/form.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/atr/form.py b/atr/form.py
index fa715b0..bff8cd2 100644
--- a/atr/form.py
+++ b/atr/form.py
@@ -125,7 +125,11 @@ def flash_error_summary(errors: 
list[pydantic_core.ErrorDetails], flash_data: di
                 ul.li["And more, not shown here..."]
                 break
             if "msg" in flash_datum:
-                ul.li[htm.strong[flash_datum["label"]], ": ", 
flash_datum["msg"]]
+                label = flash_datum["label"]
+                if label == "*":
+                    ul.li[flash_datum["msg"]]
+                else:
+                    ul.li[htm.strong[label], ": ", flash_datum["msg"]]
     summary = div.collect()
     return markupsafe.Markup(summary)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to