Re: Modify only one field

2012-02-04 Thread Ashe
On Feb 3, 11:55 pm, akaariai wrote: > On Feb 4, 9:10 am, Ashe wrote: > > > Is there a better solution to modify only the specified field on a > > table than : > > self.__class__.objects.filter(id=self.id).update(myfield='new awesome > > value') > > ? > > I have been looking for a cleaner soluti

Re: Modify only one field

2012-02-03 Thread akaariai
On Feb 4, 9:10 am, Ashe wrote: > Is there a better solution to modify only the specified field on a > table than : > self.__class__.objects.filter(id=self.id).update(myfield='new awesome > value') > ? > I have been looking for a cleaner solution for a long time without > success, while waiting for

Modify only one field

2012-02-03 Thread Ashe
Hello, Is there a better solution to modify only the specified field on a table than : self.__class__.objects.filter(id=self.id).update(myfield='new awesome value') ? I have been looking for a cleaner solution for a long time without success, while waiting for that ( https://code.djangoproject.com