Private
Public Access
1
0

basic views (not complete)

This commit is contained in:
Sander Roosendaal
2019-08-16 14:52:42 +02:00
parent b7aa7f863c
commit de6d498717
6 changed files with 206 additions and 1 deletions

View File

@@ -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):