From b836ed46665c99228f2f4109139296f8e48551d0 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 18 Jun 2009 13:44:26 +0000 Subject: [PATCH] Made correction to documentation change from [11045]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11054 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/db/queries.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 34a8b7943a..5e353b2ec3 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -946,15 +946,13 @@ in the :ref:`related objects reference `. 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:: - -Example:: +a list of primary key values. For 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