Ticket #225 (closed enhancement: fixed)
Tweak to ease default values for TimeFields?
|Reported by:||anonymous||Owned by:||andrew|
In a model I have a TimeField? which is related to, say, a moment in a video clip, which (for reasons pointless to explain here), defines the option default=datetime.time(0,1)
Django doesn't mind this, but when migrating, postgres chokes because the time is, say: 00:01:00 and it doesn't like the colons.
So, a workaround is default=('%s' % datetime.time(0,0)) but I thought I'd suggest perhaps a little auto-to-string conversion, just to make life easier?