Skip to Content
Menu
This question has been flagged
10089 Views

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?

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 17
6968
1
Jul 24
2386
0
Sep 23
2092
0
Sep 23
1832
1
Jul 23
4766