diff options
| author | sage <me@laymonage.com> | 2023-10-07 05:53:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-07 06:53:53 +0200 |
| commit | 958e4cfe42190539af9386e753d59cd487bd8847 (patch) | |
| tree | c29b4e2d8e43a9be2bad8a310d7ce7f6656cd7c7 /docs | |
| parent | 296b75a3c0309a936a6c07d8f711f722e3b96e63 (diff) | |
Added missing import in docs/ref/contrib/contenttypes.txt.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/contenttypes.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
