Added missing import in docs/ref/contrib/contenttypes.txt.

This commit is contained in:
sag᠎e 2023-10-07 05:53:53 +01:00 committed by GitHub
parent 296b75a3c0
commit 958e4cfe42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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