我在 lektor 的第一次尝试:我想为建筑作品记录创建自己的数据模型。我有一个奇怪的输出checkboxes
,lists
比如:
[u'corporate & commercial', u'interiors']
poject.ini
在哪里
[fields.type]
label = Project type
type = checkboxes
choices = corporate & commercial, residential, interiors, public,hotel/tourism, university, art gallery, restoration, spa, auditorium, installations, landscape
choice_labels = corporate & commercial, residential, interiors, public, hotel/tourism, university, art gallery, restoration, spa, auditorium, installations, landscape
并且project.html
有:
{% if this.type %}
<tr>
<th scope="row">Type</th>
<td>{{ this.type}}</td>
</tr>
{% endif %}
输出中的那些[u'
来自哪里?我错过了什么?
谢谢
AR(在 win 7/64 上运行 lektor 3.0.1)