We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 296b75a commit 958e4cfCopy full SHA for 958e4cf
docs/ref/contrib/contenttypes.txt
@@ -607,6 +607,7 @@ with non-homogeneous set of results.
607
608
.. code-block:: pycon
609
610
+ >>> from django.contrib.contenttypes.prefetch import GenericPrefetch
611
>>> bookmark = Bookmark.objects.create(url="https://www.djangoproject.com/")
612
>>> animal = Animal.objects.create(name="lion", weight=100)
613
>>> TaggedItem.objects.create(tag="great", content_object=bookmark)
0 commit comments