Skip to content

Commit

Permalink
Fixed #8909 -- Fixed typo in contenttypes docs. Thanks, arien
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8973 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Sep 6, 2008
1 parent 5f83e04 commit 83dd70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ref/contrib/contenttypes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ be used to retrieve their associated ``TaggedItems``::

If you don't add the reverse relationship, you can do the lookup manually::

>>> b = Bookmark.objects.get(url='http://www.djangoproject.com/)
>>> b = Bookmark.objects.get(url='http://www.djangoproject.com/')
>>> bookmark_type = ContentType.objects.get_for_model(b)
>>> TaggedItem.objects.filter(content_type__pk=bookmark_type.id,
... object_id=b.id)
Expand Down

0 comments on commit 83dd70f

Please sign in to comment.