1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

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

This commit is contained in:
Tushar Malik 2017-07-05 05:48:04 +05:30 committed by Tim Graham
parent 7d8fc65f36
commit 14251324e6

View File

@ -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