Ticket #3006: 3006.patch

File 3006.patch, 638 bytes (added by rmyers, 7 years ago)

documentation patch added

  • docs/contenttypes.txt

     
    227227    >>> t.content_object
    228228    <User: Guido>
    229229
     230Note that because of the nature of the ``GenericForeignKey`` you can not
     231use the DB API since it is not a normal field object. So the following
     232examples 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         
    230239Reverse generic relations
    231240-------------------------
    232241
Back to Top