質問編集履歴
2
ごじ
title
CHANGED
File without changes
|
body
CHANGED
@@ -68,8 +68,14 @@
|
|
68
68
|
消し方が解らず、そもそもエラーの原因なのか、何の用途に使用するのかがわかりません。
|
69
69
|
もしわかる方がいれば教えてください。よろしくお願いいたします。
|
70
70
|
```html
|
71
|
-
<input type="hidden" name="
|
72
|
-
<input type="hidden" name="
|
73
|
-
<input type="hidden" name="
|
74
|
-
<input type="hidden" name="
|
71
|
+
<input type="hidden" name="subitem_set-TOTAL_FORMS" value="6" id="id_subitem_set-TOTAL_FORMS">
|
72
|
+
<input type="hidden" name="subitem_set-INITIAL_FORMS" value="6" id="id_subitem_set-INITIAL_FORMS">
|
73
|
+
<input type="hidden" name="subitem_set-MIN_NUM_FORMS" value="0" id="id_subitem_set-MIN_NUM_FORMS">
|
74
|
+
<input type="hidden" name="subitem_set-MAX_NUM_FORMS" value="6" id="id_subitem_set-MAX_NUM_FORMS">
|
75
|
+
```
|
76
|
+
`print(formset)`を行いその中で気になった点を抜粋しました。
|
77
|
+
```ここに言語を入力
|
78
|
+
|
79
|
+
</select><input type="hidden" name="subitem_set-4-id" id="id_subitem_set-4-id"><input type="hidden" name="subitem_set-4-target" id="id_subitem_set-4-target"></td></tr> <tr><td colspan="2"><ul class="errorlist nonfield"><li>(隠しフィールド id) このフィールドは必須です。</li></ul></td></tr>
|
80
|
+
|
75
81
|
```
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -60,4 +60,16 @@
|
|
60
60
|
|
61
61
|
```
|
62
62
|
やれることは全てやったつもりなのですが、どうもうまくいきません。
|
63
|
-
アドバイスをいただきたいです。よろしくお願いいたします。
|
63
|
+
アドバイスをいただきたいです。よろしくお願いいたします。
|
64
|
+
|
65
|
+
#追記です
|
66
|
+
自分でもいろいろ調べてChromeの検証ツールで原因を調べました。
|
67
|
+
そこで、設定しているはずのない`hidden`と書かれた項目があり、これが原因かなと思っているのですが。
|
68
|
+
消し方が解らず、そもそもエラーの原因なのか、何の用途に使用するのかがわかりません。
|
69
|
+
もしわかる方がいれば教えてください。よろしくお願いいたします。
|
70
|
+
```html
|
71
|
+
<input type="hidden" name="subItem_set-TOTAL_FORMS" value="6" id="id_subItem_set-TOTAL_FORMS">
|
72
|
+
<input type="hidden" name="subItem_set-INITIAL_FORMS" value="6" id="id_subItem_set-INITIAL_FORMS">
|
73
|
+
<input type="hidden" name="subItem_set-MIN_NUM_FORMS" value="0" id="id_subItem_set-MIN_NUM_FORMS">
|
74
|
+
<input type="hidden" name="subItem_set-MAX_NUM_FORMS" value="6" id="id_subItem_set-MAX_NUM_FORMS">
|
75
|
+
```
|