mistercrunch commented on PR #26654:
URL: https://github.com/apache/superset/pull/26654#issuecomment-2138163134

   actually nevermind the relationship is defined well on the other side:
   ```python
   class Dashboard(AuditMixinNullable, ImportExportMixin, Model):
       {{ ... }}
       tags = relationship(
           "Tag",
           overlaps="objects,tag,tags,tags",
           secondary="tagged_object",
           primaryjoin=f"and_(Dashboard.id == TaggedObject.object_id)",
           secondaryjoin="and_(TaggedObject.tag_id == Tag.id, 
TaggedObject.object_type == 'dashboard')",
       )
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to