summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTushar Malik <itusharmalik62@gmail.com>2017-07-05 05:48:04 +0530
committerTim Graham <timograham@gmail.com>2017-07-04 20:18:25 -0400
commit664f5708c811a1dbee62b04f071a4ecacbcc992b (patch)
treec03a159889d22c73039ae6e596dd334b496fddf1 /docs
parenteabd9677261805eb2ef1b5de3188e44852f71961 (diff)
[1.11.x] Added missing import in docs/topics/db/queries.txt.
Backport of 14251324e651b43897ae04ecaf543153b2b9b587 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/db/queries.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt
index b24f7beaad..9f7f3584cd 100644
--- a/docs/topics/db/queries.txt
+++ b/docs/topics/db/queries.txt
@@ -101,7 +101,7 @@ the field in question. This example updates the ``blog`` attribute of an
``Entry`` instance ``entry``, assuming appropriate instances of ``Entry`` and
``Blog`` are already saved to the database (so we can retrieve them below)::
- >>> from blog.models import Entry
+ >>> from blog.models import Blog, Entry
>>> entry = Entry.objects.get(pk=1)
>>> cheese_blog = Blog.objects.get(name="Cheddar Talk")
>>> entry.blog = cheese_blog