Re: About model's manager method -- update

2006-07-21 Thread limodou
On 7/21/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Fri, 2006-07-21 at 15:00 +0800, limodou wrote: > > I know there is a create method in model manager class, I can use a > > dict parameter to create an object and auto save the object. And I > > want to know if there is a similar meth

Re: About model's manager method -- update

2006-07-21 Thread Malcolm Tredinnick
On Fri, 2006-07-21 at 15:00 +0800, limodou wrote: > I know there is a create method in model manager class, I can use a > dict parameter to create an object and auto save the object. And I > want to know if there is a similar method "update", which can update > an object according dict parameters,

About model's manager method -- update

2006-07-21 Thread limodou
I know there is a create method in model manager class, I can use a dict parameter to create an object and auto save the object. And I want to know if there is a similar method "update", which can update an object according dict parameters, just like: Model.objects.update(object_id, **params) bu