Introduces ordering for services
services are now ordered by ascending odometer value instead of their id
This commit is contained in:
parent
b3cb88e870
commit
bf4bb607d5
@ -77,7 +77,8 @@ class Vehicle(db.Model):
|
||||
order_by="asc(Pitstop.odometer)"
|
||||
)
|
||||
services = db.relationship(
|
||||
'Service'
|
||||
'Service',
|
||||
order_by = "asc(Service.odometer)"
|
||||
)
|
||||
consumables = db.relationship(
|
||||
'Consumable',
|
||||
|
Loading…
Reference in New Issue
Block a user