Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2016-12-06 13:35:35 +01:00
parent c50bcc2938
commit bd4f9cbe4c
2 changed files with 16 additions and 1 deletions

View File

@@ -80,6 +80,12 @@ class Rower(models.Model):
def __str__(self):
return self.user.username
class FavoriteChart(models.Model):
yparam1 = models.CharField(max_length=50)
yparam2 = models.CharField(max_length=50)
xparam = models.CharField(max_length=50)
user = models.ForeignKey(Rower)
class Workout(models.Model):
workouttypes = (
('water','On-water'),

View File

@@ -2573,10 +2573,19 @@ def workout_comparison_view2(request,id1=0,id2=0,xparam='distance',
def workout_flexchart3_view(request,id=0,xparam='distance',yparam1='pace',
def workout_flexchart3_view(request,id=0,#*args,**kwargs):
xparam='distance',yparam1='pace',
yparam2='hr',plottype='line',
promember=0):
# print args
# try:
# id = args[0]
# except:
# pass
# if 'xparam' in kwargs:
# print "found it"
if request.method == 'POST':
workstrokesonly = request.POST['workstrokesonly']
if workstrokesonly == 'True':