You need to set support_microseconds=True on the widget.
https://docs.djangoproject.com/en/stable/ref/forms/widgets/#django.forms.Widget.supports_microseconds
On Sunday, March 25, 2018 at 9:03:18 AM UTC-4, Rafał Szymczuk wrote:
>
> I have problem with updating TimeField in my models - when I want
I have problem with updating TimeField in my models - when I want to edit
objects using forms/formsets the input field on my site is always cutting
microseconds.
I made ex. class with TimeField:
class Participant(models.Model):
surname = models.CharField(max_length = 256)
name = models.C
2 matches
Mail list logo