Skip to content

Commit

Permalink
feat: Order screenings on study relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
bdewilde committed May 14, 2024
1 parent 7227014 commit 1f199cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion colandr/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,11 @@ class Study(db.Model):
lazy="select",
)
screenings: WOM["Screening"] = sa_orm.relationship(
"Screening", back_populates="study", lazy="write_only", passive_deletes=True
"Screening",
back_populates="study",
lazy="write_only",
passive_deletes=True,
order_by="Screening.id",
)

dedupe: M["Dedupe"] = sa_orm.relationship(
Expand Down

0 comments on commit 1f199cc

Please sign in to comment.