mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
PackageBase.package -> PackageBase.packages
A PackageBase can have more than one package associated with it. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
3c6b2203e9
commit
f8d2d4c82a
2 changed files with 2 additions and 18 deletions
|
@ -17,7 +17,7 @@ class Package(Base):
|
|||
Integer, ForeignKey("PackageBases.ID", ondelete="CASCADE"),
|
||||
nullable=False)
|
||||
PackageBase = relationship(
|
||||
"PackageBase", backref=backref("package", uselist=False),
|
||||
"PackageBase", backref=backref("packages", lazy="dynamic"),
|
||||
foreign_keys=[PackageBaseID])
|
||||
|
||||
__mapper_args__ = {"primary_key": [ID]}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue