質問編集履歴
1
わかりやすくしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -82,6 +82,8 @@
|
|
82
82
|
|
83
83
|
|
84
84
|
|
85
|
+
print(bought_product)
|
86
|
+
|
85
87
|
return render(request, 'buy_products.html',context={
|
86
88
|
|
87
89
|
'products':products,
|
@@ -174,6 +176,24 @@
|
|
174
176
|
|
175
177
|
|
176
178
|
|
179
|
+
|
180
|
+
|
181
|
+
```ここに言語を入力
|
182
|
+
|
183
|
+
BoughtProduct object (7)
|
184
|
+
|
185
|
+
Internal Server Error: /SellText/bought_products/9/
|
186
|
+
|
187
|
+
packages/django/template/defaulttags.py", line 167, in render
|
188
|
+
|
189
|
+
values = list(values)
|
190
|
+
|
191
|
+
TypeError: 'Product' object is not iterable
|
192
|
+
|
193
|
+
```
|
194
|
+
|
195
|
+
|
196
|
+
|
177
197
|
### 補足情報(FW/ツールのバージョンなど)
|
178
198
|
|
179
199
|
|