From 8740632f842fceaf1184ef7a20f23342d9e33b24 Mon Sep 17 00:00:00 2001
From: Mikkel Munch Mortensen <3xm@detfalskested.dk>
Date: Thu, 7 Apr 2016 18:50:44 +0200
Subject: [PATCH] Fix example comment in contenttype docs
Instead of mentioning books, mention bookmarks, as that is what the
example is about.
---
docs/ref/contrib/contenttypes.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt
index 343ede1..f47bdf8 100644
a
|
b
|
Defining :class:`~django.contrib.contenttypes.fields.GenericRelation` with
|
391 | 391 | This enables filtering, ordering, and other query operations on ``Bookmark`` |
392 | 392 | from ``TaggedItem``:: |
393 | 393 | |
394 | | >>> # Get all tags belonging to books containing `django` in the url |
| 394 | >>> # Get all tags belonging to bookmarks containing `django` in the url |
395 | 395 | >>> TaggedItem.objects.filter(bookmarks__url__contains='django') |
396 | 396 | <QuerySet [<TaggedItem: django>, <TaggedItem: python>]> |
397 | 397 | |