تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
9921 أدوات العرض

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
ديسمبر 17
6827
1
يوليو 24
1997
0
سبتمبر 23
1827
0
سبتمبر 23
1521
1
يوليو 23
4447