From 958e4cfe42190539af9386e753d59cd487bd8847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?sag=E1=A0=8Ee?= Date: Sat, 7 Oct 2023 05:53:53 +0100 Subject: [PATCH] Added missing import in docs/ref/contrib/contenttypes.txt. --- docs/ref/contrib/contenttypes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt index 023db0b672..71feee63e0 100644 --- a/docs/ref/contrib/contenttypes.txt +++ b/docs/ref/contrib/contenttypes.txt @@ -607,6 +607,7 @@ with non-homogeneous set of results. .. code-block:: pycon + >>> from django.contrib.contenttypes.prefetch import GenericPrefetch >>> bookmark = Bookmark.objects.create(url="https://www.djangoproject.com/") >>> animal = Animal.objects.create(name="lion", weight=100) >>> TaggedItem.objects.create(tag="great", content_object=bookmark)