#3182: model instance update() method and QuerySet update_or_create() method
----------------------------------------------------------+-----------------
Reporter: Gary Wilson <[email protected]> | Owner:
nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
----------------------------------------------------------+-----------------
Changes (by mrmachine):
* cc: [email protected] (added)
* needs_better_patch: 1 => 0
* version: => SVN
Comment:
Updated the patch to work with trunk (r9844). Updated docs to match new
docs. Updated the `Model.update()` method to use `setattr()` as mentioned
above so it works with `ForeignKey` fields. Also updated a few typos in
the existing `QuerySet.update()` tests and model instance docs.
This is listed as a maybe / "second-tier" feature for 1.1 with a comment
that they are likely to be included if done. I think this should be ready
to go in now.
--
Ticket URL: <http://code.djangoproject.com/ticket/3182#comment:8>
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
-~----------~----~----~----~------~----~------~--~---