mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
Fixed #8909 -- Fixed typo in contenttypes docs. Thanks, arien
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8973 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5f83e0488a
commit
83dd70fddb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user