Default value Timefield Django

1.2k Views Asked by At

I have a timefield and I would like to set up a default value.

I tried time = models.TimeField(default=datetime.time(10, 0))

but I have the error

cannot cast type time without timezone to timestamp with time zone

Any idea ?

0

There are 0 best solutions below