Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.5.X] Fixed #20183 - Clarified docs assumption that certain objects…

… exist in database.

Thanks Tomasz Jaskowski for the patch.

Backport of 41bea03 from master
  • Loading branch information...
commit 66005c643c806995ff8430f1b66a3fb779418de0 1 parent 694f4ff
Tim Graham authored May 19, 2013

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  docs/topics/db/queries.txt
3  docs/topics/db/queries.txt
@@ -100,7 +100,8 @@ Saving ``ForeignKey`` and ``ManyToManyField`` fields
100 100
 Updating a :class:`~django.db.models.ForeignKey` field works exactly the same
101 101
 way as saving a normal field -- simply assign an object of the right type to
102 102
 the field in question. This example updates the ``blog`` attribute of an
-``Entry`` instance ``entry``::
+``Entry`` instance ``entry``, assuming appropriate instances of ``Entry`` and
+``Blog`` are already saved to the database (so we can retrieve them below)::
104 105
105 106
     >>> from blog.models import Entry
106 107
     >>> entry = Entry.objects.get(pk=1)

0 notes on commit 66005c6

Please sign in to comment.
Something went wrong with that request. Please try again.