From f86d3cfa9aca5eda15099963c734c8849667b587 Mon Sep 17 00:00:00 2001 From: Alec Ritson Date: Wed, 3 Dec 2014 11:37:12 +0000 Subject: [PATCH] Fixes star value mismatch The rating values where in the opposite order, value decreased with each up star. This fixes that issue --- buttonbox/templates/stars/field.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/buttonbox/templates/stars/field.html b/buttonbox/templates/stars/field.html index 7222a0c..4897194 100644 --- a/buttonbox/templates/stars/field.html +++ b/buttonbox/templates/stars/field.html @@ -1,9 +1,11 @@
- {% for num in numStars..1 %} + {% for i, num in numStars..1 %} + {% set rating = i + 1 %} {% endfor %}
+