From 40fedbe4c454295976bfb9d166d000408f77044a Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 29 Oct 2017 21:04:31 +0100 Subject: [PATCH] bug fix nr of comments on workflow middle panel --- rowers/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rowers/views.py b/rowers/views.py index 76a705e1..e44ba678 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -6303,6 +6303,10 @@ def workout_workflow_view(request,id): if request.user == row.user.user: mayedit=1 + comments = WorkoutComment.objects.filter(workout=row) + + aantalcomments = len(comments) + workouttype = 'ote' if row.workouttype in ('water','coastal'): workouttype = 'otw' @@ -6364,6 +6368,7 @@ def workout_workflow_view(request,id): 'mapdiv':mapdiv, 'statcharts':statcharts, 'rower':r, + 'aantalcomments':aantalcomments, }) # The famous flex chart