#4260: add an update method to QuerySet
------------------------------------------------+---------------------------
Reporter: Gary Wilson <[EMAIL PROTECTED]> | Owner: adrian
Status: new | Component: Database wrapper
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
------------------------------------------------+---------------------------
One should be able to update multiple records at once with something like
{{{
#!python
User.objects.all().update(is_active=True)
}}}
instead of having to update one at a time with something like
{{{
#!python
for user in User.objects.all():
user.is_active = True
user.save()
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/4260>
Django Code <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
-~----------~----~----~----~------~----~------~--~---