1
0
mirror of https://github.com/django/django.git synced 2024-12-24 10:05:46 +00:00

[5.0.x] Added missing import in docs/ref/contrib/contenttypes.txt.

Backport of 958e4cfe42 from main
This commit is contained in:
sag᠎e 2023-10-07 05:53:53 +01:00 committed by Mariusz Felisiak
parent 9f8bf7aebe
commit 1e9f66e8e0

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)