Re: Updating multiple rows with Django DB API?

2007-07-15 Thread Steven Hilton
On 7/15/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 7/14/07, Steven Hilton <[EMAIL PROTECTED]> wrote: > > I could be updating any number of rows in bar. I want to do this > > without do a select on bar. > > Also, it's worth noting that this is als

commiting custom update sql

2007-07-15 Thread Steven Hilton
I'm trying to get some custom update sql to work. It seems to, but it never actually commits. Based on this thread: http://groups.google.com/group/django-users/browse_thread/thread/318008212a9e79f9/592236423cb67439 And this doc: http://www.djangoproject.com/documentation/transactions/#django-db

Re: Updating multiple rows with Django DB API?

2007-07-15 Thread Steven Hilton
On Jul 14, 6:37 pm, "Miguel Filho" <[EMAIL PROTECTED]> wrote: > On 7/14/07, Steven Hilton <[EMAIL PROTECTED]> wrote: > > > > > I'm working on a web app where if a particular conditions is met in > > particular object, a number of objects in anot

Updating multiple rows with Django DB API?

2007-07-14 Thread Steven Hilton
I'm working on a web app where if a particular conditions is met in particular object, a number of objects in another class/table need to be altered. Basically a trigger, but I'm trying to keep all my logic in the app for the time being. I'm wondering if there's a way to do this with the Django DB