diff options
| author | sage <me@laymonage.com> | 2023-10-07 05:53:53 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-10-07 06:59:24 +0200 |
| commit | 1e9f66e8e0d0847ed7b742c9063a14f95c7c25fb (patch) | |
| tree | e643293b8c2739357967fd32246288f820d4bacd | |
| parent | 9f8bf7aebe1d389aa06f41bcaccf5c4418c71026 (diff) | |
[5.0.x] Added missing import in docs/ref/contrib/contenttypes.txt.
Backport of 958e4cfe42190539af9386e753d59cd487bd8847 from main
| -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) |
