Private
Public Access
1
0

standards_view and standard_view

This commit is contained in:
Sander Roosendaal
2020-05-26 16:47:49 +02:00
parent 08c7562c51
commit b953d2714b
8 changed files with 247 additions and 3 deletions

View File

@@ -2197,6 +2197,7 @@ from django.core.validators import RegexValidator,validate_email
class StandardCollection(models.Model):
name = models.CharField(max_length=150)
manager = models.ForeignKey(User, null=True,on_delete=models.CASCADE)
notes = models.CharField(blank=True,null=True,max_length=1000)
def __str__(self):
return self.name
@@ -2204,6 +2205,7 @@ class StandardCollection(models.Model):
class CourseStandard(models.Model):
name = models.CharField(max_length=150)
coursedistance = models.IntegerField()
coursetime = models.CharField(max_length=100,default="")
coursestandard = models.FloatField() # average boat speed
agemin = models.IntegerField(default=0)
agemax = models.IntegerField(default=120)