質問編集履歴
1
「ちなみに、」以下を記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -142,6 +142,38 @@
|
|
142
142
|
|
143
143
|
```
|
144
144
|
|
145
|
+
|
146
|
+
|
147
|
+
ちなみに、views.pyにおいて、
|
148
|
+
|
149
|
+
title = form.cleaned_data['title']
|
150
|
+
|
151
|
+
tag = form.cleaned_data['tag']
|
152
|
+
|
153
|
+
content = form.cleaned_data['content']
|
154
|
+
|
155
|
+
question = Question(
|
156
|
+
|
157
|
+
title = title,
|
158
|
+
|
159
|
+
tag = tag,
|
160
|
+
|
161
|
+
content = content
|
162
|
+
|
163
|
+
)
|
164
|
+
|
165
|
+
question.save()
|
166
|
+
|
167
|
+
と書くと、
|
168
|
+
|
169
|
+
'tag' is an invalid keyword argument for this function
|
170
|
+
|
171
|
+
というエラーが出ました。
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
145
177
|
どこに問題があるかお分かりの方、ご教示頂ければ幸いです。
|
146
178
|
|
147
179
|
もしくは、エラーが出ていない状態で、どのデータがpostされて、処理がどこまで進んだかを調べる方法があるのでしょうか。それが分かれば自分で調べてみることができるのですが。
|