Skip to content

Commit

Permalink
Hotfix that is supposed to fix #4302
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Saleh <[email protected]>
(cherry picked from commit b823b93)
  • Loading branch information
AdamSaleh authored and mattiaverga committed Dec 5, 2021
1 parent 0b9ddbc commit 8e5a899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bodhi/server/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1918,8 +1918,8 @@ class Update(Base):

# One-to-many relationships
comments = relationship('Comment', backref='update', cascade="all,delete,delete-orphan",
order_by='Comment.timestamp')
builds = relationship('Build', backref='update', order_by='Build.nvr')
order_by='Comment.timestamp', lazy='joined')
builds = relationship('Build', backref='update', order_by='Build.nvr', lazy='joined')

# Many-to-many relationships
bugs = relationship('Bug', secondary=update_bug_table, backref='updates', order_by='Bug.bug_id')
Expand Down

0 comments on commit 8e5a899

Please sign in to comment.