#11749: QuerySet not autmatically evaluated on attribut update?
----------------------------------------------+-----------------------------
Reporter: gz | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: 1.1
Keywords: Database ORM QuerySet evaluation | Stage: Unreviewed
Has_patch: 0 |
----------------------------------------------+-----------------------------
Not evaluating QuerySets manually by using list() gives strange results
while trying to update a model in the list:
{{{
my_list = Model.objects.all()
my_list[order].some_attribute = 12
my_list[index].save() # some_attribute is not updated!
# with my_list = list(Model.objects.all()) it works tough
}}}
I don't know if this is really a bug or intended behaviour?
--
Ticket URL: <http://code.djangoproject.com/ticket/11749>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---