Skip to content

Commit

Permalink
frontend: Add backref relationship between Package and Build to silen…
Browse files Browse the repository at this point in the history
…ce sqlalchemy warnings
  • Loading branch information
nikromen committed Nov 27, 2023
1 parent e4f544d commit a11acf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/coprs_frontend/coprs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ def __init__(self, *args, **kwargs):
copr_id = db.Column(db.Integer, db.ForeignKey("copr.id"), index=True)
copr = db.relationship("Copr", backref=db.backref("builds"))
package_id = db.Column(db.Integer, db.ForeignKey("package.id"), index=True)
package = db.relationship("Package")
package = db.relationship("Package", backref=db.backref("builds"))

chroots = association_proxy("build_chroots", "mock_chroot")

Expand Down

0 comments on commit a11acf1

Please sign in to comment.