Author: russellm Date: 2009-06-18 08:44:26 -0500 (Thu, 18 Jun 2009) New Revision: 11054
Modified: django/trunk/docs/topics/db/queries.txt Log: Made correction to documentation change from [11045]. Modified: django/trunk/docs/topics/db/queries.txt =================================================================== --- django/trunk/docs/topics/db/queries.txt 2009-06-18 13:37:10 UTC (rev 11053) +++ django/trunk/docs/topics/db/queries.txt 2009-06-18 13:44:26 UTC (rev 11054) @@ -946,15 +946,13 @@ To assign the members of a related set in one fell swoop, just assign to it from any iterable object. The iterable can contain object instances, or just -a list of primary key values. For Example:: +a list of primary key values. For example:: -Example:: - b = Blog.objects.get(id=1) b.entry_set = [e1, e2] In this example, ``e1`` and ``e2`` can be full Entry instances, or integer -values representing primary keys. +primary key values. If the ``clear()`` method is available, any pre-existing objects will be removed from the ``entry_set`` before all objects in the iterable (in this --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---