Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
9940 มุมมอง

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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ธ.ค. 17
6837
1
ก.ค. 24
2037
0
ก.ย. 23
1838
0
ก.ย. 23
1531
1
ก.ค. 23
4490