From 52dbe311c71e2f188c7b961f092eec5459f3bfab Mon Sep 17 00:00:00 2001 From: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com> Date: Thu, 6 May 2021 15:30:49 -0700 Subject: [PATCH] fix: parameterize titles correctly (#14509) --- 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 5c8b7f2a48a81..52f3984591b4a 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -837,7 +837,7 @@ def explore( # pylint: disable=too-many-locals,too-many-return-statements,too-m bootstrap_data, default=utils.pessimistic_json_iso_dttm_ser ), entry="explore", - title=title, + title=title.__str__(), standalone_mode=standalone_mode, ) @@ -2833,7 +2833,7 @@ def profile(self, username: str) -> FlaskResponse: 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