First version
This commit is contained in:
@@ -3790,3 +3790,20 @@ class ShareKey(models.Model):
|
|||||||
@property
|
@property
|
||||||
def expiration_date(self):
|
def expiration_date(self):
|
||||||
return self.creation_date + datetime.timedelta(self.expiration_seconds)
|
return self.creation_date + datetime.timedelta(self.expiration_seconds)
|
||||||
|
|
||||||
|
class StandardCollection(models.Model):
|
||||||
|
name = models.CharField(max_length=150)
|
||||||
|
|
||||||
|
class CourseStandard(models.Model):
|
||||||
|
name = models.CharField(max_length=150)
|
||||||
|
coursedistance = models.IntegerField()
|
||||||
|
coursestandard = models.FloatField() # average boat speed
|
||||||
|
agemin = models.IntegerField(default=0)
|
||||||
|
agemax = models.IntegerField(default=120)
|
||||||
|
boatclass = models.CharField(max_length=150) # corresponds to workout workouttype
|
||||||
|
boattype = models.CharField(choices=boattypes,max_length=50,default='1x')
|
||||||
|
sex = models.CharField(max_length=150)
|
||||||
|
weightclass = models.CharField(max_length=150)
|
||||||
|
adaptiveclass = models.CharField(choices=mytypes.adaptivetypes,max_length=50,default="None")
|
||||||
|
skillclass = models.CharField(max_length=150)
|
||||||
|
standardcollection = models.ForeignKey(StandardCollection,on_delete=models.CASCADE)
|
||||||
|
|||||||
Reference in New Issue
Block a user