Re: Update only selected fields

2009-09-27 Thread Karen Tracey
On Sun, Sep 27, 2009 at 7:17 PM, jsk wrote: > > Hi all, > > I was wondering if there is built-in support for updating only > selected field(s) when calling model.save(). > When I call save() on the object, django call SQL UPDATE for all > fields of the model, which is not ideal from performance p

Update only selected fields

2009-09-27 Thread jsk
Hi all, I was wondering if there is built-in support for updating only selected field(s) when calling model.save(). When I call save() on the object, django call SQL UPDATE for all fields of the model, which is not ideal from performance point of view. I've found this snippet: http://www.djangosn