Hi all,

I'm using Django 1.4.2. Please let me start my question by an example:

books = Book.objects.filter(published=False)
for book in books:
book.published=True
book.save() 

I would think this small snippet of code will only update the "published" 
field, but actually it write all the cached field values back to the database. 

Is it a bug or designed to be this way?

Thanks
-- 
Dong Wang

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to