【发布时间】:2011-05-27 03:07:36
【问题描述】:
<tr name="item">
<td><input type="checkbox" ></td>
<td>>{{ foo }}</td>
<td> {{ bar }} </td>
</tr>
现在我希望在 django 视图中 request.POST.getlist('item') 返回即 foo 和 bar 的值。但它返回 null。
【问题讨论】:
-
你为什么不为此使用 Form 对象?
-
你甚至有一个错字,第 3 行中的
td元素有两个右括号:<td>>
标签: python html django django-templates