Private
Public Access
1
0

alert boat type

This commit is contained in:
Sander Roosendaal
2019-08-30 08:01:15 +02:00
parent a214f560d2
commit 2e892e7498
4 changed files with 11 additions and 3 deletions

View File

@@ -1082,6 +1082,8 @@ class Alert(models.Model):
emailalert = models.BooleanField(default=True,verbose_name='Send email alerts')
workouttype = models.CharField(choices=rowchoices,max_length=50,
verbose_name='Exercise/Boat Class',default='water')
boattype = models.CharField(choices=mytypes.boattypes,max_length=50,
verbose_name='Boat Type',default='1x')
def __str__(self):
@@ -1145,7 +1147,7 @@ class Alert(models.Model):
class AlertEditForm(ModelForm):
class Meta:
model = Alert
fields = ['name','reststrokes','period','emailalert','workouttype']
fields = ['name','reststrokes','period','emailalert','workouttype','boattype']
widgets = {
'reststrokes':forms.CheckboxInput()
}