Merge branch 'issue_8_wrong_date_on_creating_new_pitstop' into 'development'
fix issue 8 See merge request !24
This commit is contained in:
commit
aaa94f08fa
|
@ -82,7 +82,7 @@ class CreatePitstopForm(Form):
|
||||||
if self.date.data:
|
if self.date.data:
|
||||||
self.date.default = self.date.data
|
self.date.default = self.date.data
|
||||||
else:
|
else:
|
||||||
self.date.default = self.last_pitstop.date
|
self.date.default = date.today()
|
||||||
if self.odometer.data:
|
if self.odometer.data:
|
||||||
self.odometer.default = self.odometer.data
|
self.odometer.default = self.odometer.data
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue