質問編集履歴

1

コードの誤り

2020/04/18 19:22

投稿

Mcgregor
Mcgregor

スコア31

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 result in status_result %}
97
+ {% for i in data %}
90
98
 
91
- {{result.status_code}}
99
+ {{i.result}}
92
100
 
93
- {{result.total}}
101
+ {{i.total}}
94
102
 
95
103
  {% endfor %}
96
104