basic views (not complete)
This commit is contained in:
@@ -1045,7 +1045,15 @@ class Alert(models.Model):
|
||||
workouttype = models.CharField(choices=rowchoices,max_length=50,
|
||||
verbose_name='Exercise/Boat Class',default='water')
|
||||
|
||||
|
||||
|
||||
def __str__(self):
|
||||
stri = u'Alert {name} on {metric} for {workouttype}'.format(
|
||||
name = self.name,
|
||||
metric = self.measured.metric,
|
||||
workouttype = self.workouttype
|
||||
)
|
||||
|
||||
return stri
|
||||
|
||||
class BasePlannedSessionFormSet(BaseFormSet):
|
||||
def clean(self):
|
||||
|
||||
Reference in New Issue
Block a user