Skip to content

Commit

Permalink
fixed bulk deleting embedded dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
sinhashubham95 committed Oct 22, 2022
1 parent 37bedcb commit 88172e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset/dashboards/dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def bulk_delete(models: Optional[List[Dashboard]], commit: bool = True) -> None:
for model in models:
model.slices = []
model.owners = []
model.embedded = []
db.session.merge(model)
# bulk delete itself
try:
Expand Down

0 comments on commit 88172e2

Please sign in to comment.