MichaelS
MichaelS

Reputation: 351

Default value Timefield Django

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 ?

Upvotes: 0

Views: 1246

Answers (0)

Related Questions