跳至內容
選單
此問題已被標幟
10213 瀏覽次數

I have a model with some Integer fields which represent times in seconds. 

I would like to display these fields not as integers but as a time HH:MM:SS using something like <field name="int_field" widget="int_time"/> similar to how you would use the float_time widget. 

How do I create and register such a custom widget?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
12月 17
7054
1
7月 24
2561
0
9月 23
2260
0
9月 23
1977
1
7月 23
4932