  many comments as pingbacks, we modify the query::
  
      >>> Entry.objects.filter(n_pingbacks__lt=F('n_comments') * 2)
  
  To find all the entries where the sum of the pingback count and comment count
  is greater than the rating of the entry, we would issue the query::
  
      >>> Entry.objects.filter(rating__lt=F('n_comments') + F('n_pingbacks'))
  
  You can also use the double underscore notation to span relationships in
  an ``F()`` object. An ``F()`` object with a double underscore will introduce
 
</s> remove     >>> Entry.objects.filter(n_pingbacks__lt=F('n_comments'))
 </s> add     >>> Entry.objects.filter(n_comments__gt=F('n_pingbacks')) </s> remove     >>> Entry.objects.filter(n_pingbacks__lt=F('n_comments') * 2)
 </s> add     >>> Entry.objects.filter(n_comments__gt=F('n_pingbacks') * 2) </s> remove and with other ``F()`` objects. To find all the blog entries with *twice* as
many comments as pingbacks, we modify the query::
 </s> add and with other ``F()`` objects. To find all the blog entries with more than
*twice* as many comments as pingbacks, we modify the query::
To find all the entries where the rating of the entry is less than the
sum of the pingback count and comment count, we would issue the
query::
  many comments as pingbacks, we modify the query::
  
      >>> Entry.objects.filter(n_pingbacks__lt=F('n_comments') * 2)
  
To find all the entries where the rating of the entry is less than the
sum of the pingback count and comment count, we would issue the
query::
To find all the entries where the rating of the entry is less than the
sum of the pingback count and comment count, we would issue the
query::
  
      >>> Entry.objects.filter(rating__lt=F('n_comments') + F('n_pingbacks'))
  
  You can also use the double underscore notation to span relationships in
  an ``F()`` object. An ``F()`` object with a double underscore will introduce
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #13532 -- Corrected and clarified examples in F() docs. Thanks to erw for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13254 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
docs/topics/db/queries.txt