Ticket #2256: queryset_count_doc.patch
File queryset_count_doc.patch, 560 bytes (added by , 18 years ago) |
---|
-
docs/db-api.txt
822 822 is an underlying implementation quirk that shouldn't pose any real-world 823 823 problems. 824 824 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 825 837 ``in_bulk(id_list)`` 826 838 ~~~~~~~~~~~~~~~~~~~~ 827 839