On Sun, Sep 27, 2009 at 7:17 PM, jsk <sev...@styxys.com> 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 point of > view. > I've found this snippet: http://www.djangosnippets.org/snippets/479/ > > But I'm asking myself if there is django built-in solution for this > problem, or better trick ? > > No, there is no built-in support for this. As that snippet notes, there is a ticket requesting it:
http://code.djangoproject.com/ticket/4102 Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---