Skip to content

Commit

Permalink
Order Jurisdiction.audit_boards by name
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahkagan committed Apr 7, 2020
1 parent 1bd00d9 commit 7265323
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arlo_server/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ class Jurisdiction(BaseModel):

batches = relationship("Batch", backref="jurisdiction", passive_deletes=True)
audit_boards = relationship(
"AuditBoard", backref="jurisdiction", passive_deletes=True
"AuditBoard",
backref="jurisdiction",
passive_deletes=True,
order_by="AuditBoard.name",
)
contests = relationship(
"Contest", secondary="contest_jurisdiction", passive_deletes=True,
Expand Down

0 comments on commit 7265323

Please sign in to comment.