From 1e9f66e8e0d0847ed7b742c9063a14f95c7c25fb 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] [5.0.x] Added missing import in docs/ref/contrib/contenttypes.txt. Backport of 958e4cfe42190539af9386e753d59cd487bd8847 from main --- 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)