Code

Ticket #8909: ref-contrib-contenttypes.diff

File ref-contrib-contenttypes.diff, 641 bytes (added by arien, 6 years ago)
Line 
1Index: docs/ref/contrib/contenttypes.txt
2===================================================================
3--- docs/ref/contrib/contenttypes.txt   (revision 8972)
4+++ docs/ref/contrib/contenttypes.txt   (working copy)
5@@ -305,7 +305,7 @@
6 
7 If you don't add the reverse relationship, you can do the lookup manually::
8 
9-    >>> b = Bookmark.objects.get(url='http://www.djangoproject.com/)
10+    >>> b = Bookmark.objects.get(url='http://www.djangoproject.com/')
11     >>> bookmark_type = ContentType.objects.get_for_model(b)
12     >>> TaggedItem.objects.filter(content_type__pk=bookmark_type.id,
13     ...                           object_id=b.id)