Skip to content

Commit

Permalink
fix: parameterize titles correctly (#14509)
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian authored May 6, 2021
1 parent 1df9384 commit 52dbe31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 52dbe31

Please sign in to comment.