mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 19:40:21 +01:00
Make explicit relations between file and tags.
This commit is contained in:
@@ -104,7 +104,7 @@ class Tag(Base):
|
|||||||
tag = Column(Text)
|
tag = Column(Text)
|
||||||
group = relation('Group', backref=backref('tags', remote_side="Group.id"))
|
group = relation('Group', backref=backref('tags', remote_side="Group.id"))
|
||||||
|
|
||||||
files = relation("File", secondary=tags_files)
|
files = relation("File", secondary=tags_files, back_populates="tags")
|
||||||
|
|
||||||
def __init__(self, tag=None, group=None):
|
def __init__(self, tag=None, group=None):
|
||||||
self.tag = tag
|
self.tag = tag
|
||||||
|
|||||||
Reference in New Issue
Block a user