2017-09-03 7 views
0

私の最初の試み:私は建築作品の記録のための自分のデータモデルを作成したいと思います。 私のようなcheckboxeslistsのための奇妙なouputを持っている:lektor checkboxes `[u'`outup error?

[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持っている

出力に含まのもの [u'が来ている
{% if this.type %} 
<tr> 
<th scope="row">Type</th> 
<td>{{ this.type}}</td> 
</tr> 
{% endif %} 

をから?私は何が欠けていますか?

AR (勝利7/64にlektor 3.0.1を実行している)

答えて

0

[uがリスト(または配列)を示し、ありがとうございました。 this.typeはあなたの選択肢リストで、1つの項目を取得するためにforループやフィルタなどを使用できます。