From 14251324e651b43897ae04ecaf543153b2b9b587 Mon Sep 17 00:00:00 2001 From: Tushar Malik Date: Wed, 5 Jul 2017 05:48:04 +0530 Subject: [PATCH] Added missing import in docs/topics/db/queries.txt. --- docs/topics/db/queries.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index b6263a9f42..3651d2a53e 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