Skip to content

Commit

Permalink
fix wrong object_type of saved_query
Browse files Browse the repository at this point in the history
  • Loading branch information
akzarma authored Apr 6, 2023
1 parent c5eecc7 commit 45698a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/models/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ class SavedQuery(Model, AuditMixinNullable, ExtraJSONMixin, ImportExportMixin):
secondary="tagged_object",
primaryjoin="and_(SavedQuery.id == TaggedObject.object_id)",
secondaryjoin="and_(TaggedObject.tag_id == Tag.id, "
"TaggedObject.object_type == 'saved_query')",
"TaggedObject.object_type == 'query')",
)

export_parent = "database"
Expand Down

0 comments on commit 45698a5

Please sign in to comment.