You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by su...@apache.org on 2021/05/06 20:17:36 UTC
[superset] 01/01: fix: parameterize titles correctly
This is an automated email from the ASF dual-hosted git repository.
suddjian pushed a commit to branch fix/title-text
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 519f32313b7f8ea15cae3ea00da5672ce7b153ba
Author: David Aaron Suddjian <aa...@gmail.com>
AuthorDate: Thu May 6 13:16:24 2021 -0700
fix: parameterize titles correctly
---
superset/views/core.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/views/core.py b/superset/views/core.py
index 5c8b7f2..52f3984 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -837,7 +837,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
bootstrap_data, default=utils.pessimistic_json_iso_dttm_ser
),
entry="explore",
- title=title,
+ title=title.__str__(),
standalone_mode=standalone_mode,
)
@@ -2833,7 +2833,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
return self.render_template(
"superset/basic.html",
- title=_("%(user)s's profile", user=username),
+ title=_("%(user)s's profile", user=username).__str__(),
entry="profile",
bootstrap_data=json.dumps(
payload, default=utils.pessimistic_json_iso_dttm_ser