Re: update() on queryset not functional.

2014-11-10 Thread Biola Oyeniyi
On Monday, 10 November 2014 13:52:46 UTC+1, Tom Evans wrote: > > On Mon, Nov 10, 2014 at 10:15 AM, Biola Oyeniyi > wrote: > > based on the docs, update() Performs an SQL update query for the > specified > > fields, and returns the number of rows matched. > >

update() on queryset django 1.7.1 not functional

2014-11-10 Thread Biola Oyeniyi
I have atttempted updating a model based on using the update() method as described in the docs https://docs.djangoproject.com/en/dev/ref/models/querysets/ , I have used both sqlite and postgres but still end up with the model not being updated. My code is shown below. def create_session

update() on queryset not functional.

2014-11-10 Thread Biola Oyeniyi
based on the docs, update() Performs an SQL update query for the specified fields, and returns the number of rows matched. I have tried updating a model using it on *django 1.7.1* with both sqlite and postgres but my test suite keeps failing and indicating no update. Here is what i have tried.