浏览代码

Added missing import in docs/topics/db/queries.txt.

Tushar Malik 7 年之前
父节点
当前提交
14251324e6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/topics/db/queries.txt

+ 1 - 1
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