mirror of
https://github.com/apache/superset.git
synced 2024-09-06 22:07:34 -04:00
chore: Fix TableModelView super call (#11815)
This commit is contained in:
parent
9c69679e14
commit
13c51d5211
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user