Skip to content

Commit

Permalink
fix(saved_queries): wrong enum for object_type of saved_query (#23611)
Browse files Browse the repository at this point in the history
  • Loading branch information
akzarma authored Apr 10, 2023
1 parent a41f3eb commit e8f32c4
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 @@ -359,7 +359,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 e8f32c4

Please sign in to comment.