Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Made correction to documentation change from [11045].

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b836ed46665c99228f2f4109139296f8e48551d0 1 parent 755762e
@freakboy3742 freakboy3742 authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 docs/topics/db/queries.txt
6 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::
+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
Please sign in to comment.
Something went wrong with that request. Please try again.