adding Standard Times to events
This commit is contained in:
@@ -2262,7 +2262,8 @@ class VirtualRace(PlannedSession):
|
||||
contact_email = models.EmailField(max_length=254,
|
||||
validators=[validate_email],blank=True)
|
||||
|
||||
coursestandards = models.ForeignKey(StandardCollection,null=True,on_delete=models.SET_NULL)
|
||||
coursestandards = models.ForeignKey(StandardCollection,null=True,on_delete=models.SET_NULL,
|
||||
verbose_name='Standard Times')
|
||||
|
||||
def __str__(self):
|
||||
|
||||
@@ -2432,6 +2433,7 @@ class IndoorVirtualRaceForm(ModelForm):
|
||||
'registration_closure',
|
||||
'evaluation_closure',
|
||||
'comment',
|
||||
'coursestandards',
|
||||
'contact_phone',
|
||||
'contact_email',
|
||||
]
|
||||
@@ -2568,6 +2570,7 @@ class VirtualRaceForm(ModelForm):
|
||||
'registration_closure',
|
||||
'evaluation_closure',
|
||||
'course',
|
||||
'coursestandards',
|
||||
'comment',
|
||||
'contact_phone',
|
||||
'contact_email',
|
||||
@@ -2939,6 +2942,7 @@ class VirtualRaceResult(models.Model):
|
||||
race = models.ForeignKey(VirtualRace,on_delete=models.CASCADE)
|
||||
duration = models.TimeField(default=datetime.time(1,0))
|
||||
distance = models.IntegerField(default=0)
|
||||
points = models.IntegerField(default=0)
|
||||
boatclass = models.CharField(choices=boatclasses,
|
||||
max_length=40,
|
||||
default='water',
|
||||
@@ -3002,6 +3006,7 @@ class IndoorVirtualRaceResult(models.Model):
|
||||
race = models.ForeignKey(VirtualRace,on_delete=models.CASCADE)
|
||||
duration = models.TimeField(default=datetime.time(1,0))
|
||||
distance = models.IntegerField(default=0)
|
||||
points = models.IntegerField(default=0)
|
||||
boatclass = models.CharField(choices=boatclasses,
|
||||
max_length=40,
|
||||
default='rower',
|
||||
|
||||
Reference in New Issue
Block a user