Private
Public Access
1
0

images on comment page

This commit is contained in:
Sander Roosendaal
2017-03-02 20:52:10 +01:00
parent 2f1db232cc
commit 866a4123b4

View File

@@ -3692,13 +3692,27 @@ def workout_comment_view(request,id=0):
'id':id})
return HttpResponseRedirect(url)
form = WorkoutCommentForm()
return render(request,
'workout_comments.html',
{'workout':w,
'comments':comments,
'form':form,
form = WorkoutCommentForm()
g = GraphImage.objects.filter(workout=row).order_by("-creationdatetime")
if (len(g)<=3):
return render(request,
'workout_comments.html',
{'workout':w,
'graphs1':g[0:3],
'comments':comments,
'form':form,
})
else:
return render(request,
'workout_comments.html',
{'workout':w,
'graphs1':g[0:3],
'graphs1':g[3:6],
'comments':comments,
'form':form,
})
# The basic edit page