Re: How to prevent updating auto_now date field.

2007-07-26 Thread oggie rob
> Is it possible? > Or should I remove auto_now and update the date field whenever > updating the model? If you can't update to trunk, this would probably be your easiest solution. It should only be a few lines of code. -rob --~--~-~--~~~---~--~~ You received t

Re: How to prevent updating auto_now date field.

2007-07-26 Thread Russell Keith-Magee
On 7/27/07, Mambaragi <[EMAIL PROTECTED]> wrote: > > I have to prevent updating auto_nowed field for just one action. > > Is it possible? It is not possible in 0.96, but it is possible on trunk. A recently added feature allows you to call: instance.save(raw=True) which will prevent any field pr

How to prevent updating auto_now date field.

2007-07-26 Thread Mambaragi
Hello, Django 0.96, Python 2.5. I have a model which has an auto_now date field for checking update time. But as you know there will always be exceptions. I have to prevent updating auto_nowed field for just one action. Is it possible? Or should I remove auto_now and update the date field when