Ticket #15875: 15875.diff

File 15875.diff, 588 bytes (added by koen.biermans@…, 13 years ago)
  • docs/topics/db/queries.txt

     
    540540different fields on the same model instance.
    541541
    542542For example, to find a list of all blog entries that have had more comments
    543 than pingbacks, we construct an ``F()`` object to reference the comment count,
     543than pingbacks, we construct an ``F()`` object to reference the pingback count,
    544544and use that ``F()`` object in the query::
    545545
    546546    >>> from django.db.models import F
Back to Top