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 <asaleh@redhat.com>
  • Loading branch information
AdamSaleh committed Nov 30, 2021
1 parent 0b9ddbc commit b758a4c
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 b758a4c

Please sign in to comment.