Reputation: 351
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