Permalink
Browse files

Made correction to documentation change from [11045].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11054 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 755762e commit b836ed46665c99228f2f4109139296f8e48551d0 @freakboy3742 freakboy3742 committed Jun 18, 2009
Showing with 2 additions and 4 deletions.
  1. +2 −4 docs/topics/db/queries.txt
@@ -946,15 +946,13 @@ in the :ref:`related objects reference <ref-models-relations>`.
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

0 comments on commit b836ed4

Please sign in to comment.