質問編集履歴
1
コードの誤り
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,17 +80,25 @@
|
|
80
80
|
|
81
81
|
count = all.values('result').annotate(total=Count('result'))
|
82
82
|
|
83
|
+
params = {
|
84
|
+
|
85
|
+
'data': count,
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
|
90
|
+
|
83
91
|
```
|
84
92
|
|
85
93
|
```html
|
86
94
|
|
87
95
|
index.html
|
88
96
|
|
89
|
-
{% for
|
97
|
+
{% for i in data %}
|
90
98
|
|
91
|
-
{{result
|
99
|
+
{{i.result}}
|
92
100
|
|
93
|
-
{{
|
101
|
+
{{i.total}}
|
94
102
|
|
95
103
|
{% endfor %}
|
96
104
|
|