mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: Fix TableModelView super call (#11815)
This commit is contained in:
@@ -481,9 +481,9 @@ class TableModelView( # pylint: disable=too-many-ancestors
|
||||
|
||||
@expose("/edit/<pk>", methods=["GET", "POST"])
|
||||
@has_access
|
||||
def edit(self, pk: int) -> FlaskResponse:
|
||||
def edit(self, pk: str) -> FlaskResponse:
|
||||
"""Simple hack to redirect to explore view after saving"""
|
||||
resp = super(TableModelView, self).edit(pk)
|
||||
resp = super().edit(pk)
|
||||
if isinstance(resp, str):
|
||||
return resp
|
||||
return redirect("/superset/explore/table/{}/".format(pk))
|
||||
|
||||
Reference in New Issue
Block a user