From a57e69a898e0d5a9734af53dbb40c05f7997f945 Mon Sep 17 00:00:00 2001 From: mutantsan Date: Tue, 14 May 2024 16:14:27 +0300 Subject: [PATCH] DATASHADES-325 / fix view description field --- ckanext/charts/chart_builders/plotly.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ckanext/charts/chart_builders/plotly.py b/ckanext/charts/chart_builders/plotly.py index ca14162..17d7f04 100644 --- a/ckanext/charts/chart_builders/plotly.py +++ b/ckanext/charts/chart_builders/plotly.py @@ -194,11 +194,15 @@ def title_field(self) -> dict[str, Any]: def description_field(self) -> dict[str, Any]: return { - "field_name": "notes", + "field_name": "description", "label": "Description", "form_snippet": "markdown.html", "form_placeholder": "Information about my view", "group": "General", + "validators": [ + self.get_validator("ignore_empty"), + self.get_validator("unicode_safe"), + ], } def engine_field(self) -> dict[str, Any]: