alert boat type
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user