こんにちは、次のようにレンダリングされる新しいフィールドを作成したいと思います。
<table>
<tr><td colspan="3">
<select id="item_id" size="6" style="width: 100%;">
<option>Apple</option>
<option>Pear</option>
<option>Banana</option>
<option>Orange</option>
</select>
</td></tr>
<tr><td>
<input type="text" id="item_id_add" />
</td><td>
<button type="button" onclick="addElement('item_id')">Add</button>
</td><td>
<button type="button" onclick="removeElement('item_id')">Remove</button>
</td></tr>
</table>
ユーザーがオプションを追加および削除でき、これらのオプションがすべて送信される場合(ユーザーが自分のリストを定義できるようにしたい)。HTML / JSでそれを行う方法は知っていますが、djangoでフィールドを希望どおりにレンダリングする方法がわかりません。
これを達成する方法は?