Changeset 8973
- Timestamp:
- 09/06/08 11:49:31 (3 months ago)
- Files:
-
- django/trunk/docs/ref/contrib/contenttypes.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/ref/contrib/contenttypes.txt
r8506 r8973 306 306 If you don't add the reverse relationship, you can do the lookup manually:: 307 307 308 >>> b = Bookmark.objects.get(url='http://www.djangoproject.com/ )308 >>> b = Bookmark.objects.get(url='http://www.djangoproject.com/') 309 309 >>> bookmark_type = ContentType.objects.get_for_model(b) 310 310 >>> TaggedItem.objects.filter(content_type__pk=bookmark_type.id,
