Re: Filling in auto date/times at the right moment

2006-03-02 Thread Malcolm Tredinnick
On Thu, 2006-03-02 at 15:59 +1100, Malcolm Tredinnick wrote: [...] > So, I guess my questions are as follows: > > (1) Why are we only filling in auto_now_add and auto_now in save(), > rather than prior to validation? Purely accidental, or is there a more > noble purpose? > > (2) Is the right pla

Filling in auto date/times at the right moment

2006-03-01 Thread Malcolm Tredinnick
Suppose you have a model that looks something like this (on the magic- removal branch): class Example(models.Model): title = models.CharField(maxlength = 50, unique_for_date = 'date') date = models.DateTimeField(auto_now_add = True) class Admin: ... If I try to create an instance