hopefully completing types features
This commit is contained in:
@@ -3569,6 +3569,11 @@ class Workout(models.Model):
|
||||
if self.timezone == 'tzutc()':
|
||||
self.timezone = 'UTC' # pragma: no cover
|
||||
|
||||
if self.workouttype in mytypes.otwtypes and self.boattype in mytypes.ergtypes:
|
||||
self.boattype = '1x'
|
||||
elif self.workouttype in mytypes.otetypes and self.boattype in mytypes.boattypes:
|
||||
self.boattype = 'static'
|
||||
|
||||
super(Workout, self).save(*args, **kwargs)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user