Ticket #3006: 3006.patch
File 3006.patch, 638 bytes (added by , 16 years ago) |
---|
-
docs/contenttypes.txt
227 227 >>> t.content_object 228 228 <User: Guido> 229 229 230 Note that because of the nature of the ``GenericForeignKey`` you can not 231 use the DB API since it is not a normal field object. So the following 232 examples will *not* work:: 233 234 # This will fail 235 >>> TaggedItem.objects.filter(content_object=guido) 236 # This will also fail 237 >>> TaggedItem.objects.get(content_object=guido) 238 230 239 Reverse generic relations 231 240 ------------------------- 232 241