Skip to content

Commit

Permalink
fix backref
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jun 16, 2023
1 parent 48ce102 commit 3bc8e0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset/tags/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class Tag(Model, AuditMixinNullable):
name = Column(String(250), unique=True)
type = Column(Enum(TagTypes))

tagged_objects = relationship(
"TaggedObject", back_populates="tag", overlaps="tagged_objects,tags"
objects = relationship(
"TaggedObject", back_populates="tag", overlaps="objects,tags"
)


Expand All @@ -97,7 +97,7 @@ class TaggedObject(Model, AuditMixinNullable):
)
object_type = Column(Enum(ObjectTypes))

tag = relationship("Tag", back_populates="tagged_objects", overlaps="tags")
tag = relationship("Tag", back_populates="objects", overlaps="tags")


def get_tag(name: str, session: Session, type_: TagTypes) -> Tag:
Expand Down

0 comments on commit 3bc8e0d

Please sign in to comment.