Ticket #2256: queryset_count_doc.patch

File queryset_count_doc.patch, 560 bytes (added by Chris Beaven, 18 years ago)

Documentation if it's needed

  • docs/db-api.txt

     
    822822is an underlying implementation quirk that shouldn't pose any real-world
    823823problems.
    824824
     825**New in Django development version**
     826
     827``count()`` now respects sliced ``QuerySet``s. For example::
     828
     829    >>> all = Entry.objects.all()
     830    >>> all.count()
     831    27
     832    >>> all[:2].count()
     833    2
     834    >>> all[1:500].count()
     835    26
     836
    825837``in_bulk(id_list)``
    826838~~~~~~~~~~~~~~~~~~~~
    827839
Back to Top