improving course compare
This commit is contained in:
@@ -3727,6 +3727,18 @@ class Workout(models.Model):
|
||||
elif self.workouttype in mytypes.otetypes and self.boattype in mytypes.boattypes:
|
||||
self.boattype = 'static'
|
||||
|
||||
records = VirtualRaceResult.objects.filter(workoutid=self.pk)
|
||||
for record in records:
|
||||
record.boattype = self.boattype
|
||||
record.boatclass = self.workouttype
|
||||
record.save()
|
||||
|
||||
records = IndoorVirtualRaceResult.objects.filter(workoutid=self.pk)
|
||||
for record in records:
|
||||
record.boattype = self.boattype
|
||||
record.boatclass = self.workouttype
|
||||
record.save()
|
||||
|
||||
super(Workout, self).save(*args, **kwargs)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user