> I think we should fix this. How about adding a boolean to the
> DateTimeCol class' constructor, like this:
>
> timestamp = DateTimeCol(autoTimestamp=True)
>
> That could work. Is "autoTimestamp" a keyword people are familiar with?
> :)
Isn't this a more generic idea, saying "not a required field, and don't include
when creating"? Ie, a flag that could apply to any Col type, not just
DateTimeCol? Right now, my understanding is that we can have fields that
aren't required for creating SO objects, but SO requires a default
value/function to use in that case and includes it in the INSERT statement.
Not sure what word to use for the flag, "auto" by itself is the right concept
but pretty generic. "autoInsert"? "databaseDefault"? "defaultFromDatabase"?
- Luke
|