regular_costs #5

Merged
jlusiardi merged 19 commits from regular_costs into master 2021-06-18 20:20:13 +02:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit c42a667ca4 - Show all commits

View File

@ -73,7 +73,8 @@ class Vehicle(db.Model):
owner_id = db.Column(db.Integer, db.ForeignKey('user.id')) owner_id = db.Column(db.Integer, db.ForeignKey('user.id'))
name = db.Column(db.String(255)) name = db.Column(db.String(255))
pitstops = db.relationship( pitstops = db.relationship(
'Pitstop' 'Pitstop',
order_by="asc(Pitstop.odometer)"
) )
services = db.relationship( services = db.relationship(
'Service' 'Service'