From abcb70e5245095628c4a00816138af9382e306fd Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Tue, 23 Oct 2007 13:49:07 +0000 Subject: queryset-refactor: Added a convenience all() method to Querysets. Refs #3739 git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6600 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/db-api.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs') diff --git a/docs/db-api.txt b/docs/db-api.txt index 6e121b8f3d..9fc82add4a 100644 --- a/docs/db-api.txt +++ b/docs/db-api.txt @@ -681,6 +681,17 @@ Examples:: >>> Entry.objects.none() [] +``all()`` +~~~~~~~~~~ + +**New in Django development version** + +Returns a ''copy'' of the current ``QuerySet`` (or ``QuerySet`` subclass you +pass in). This can be useful in some situations where you might want to pass +in either a model manager or a ``QuerySet`` and do further filtering on the +result. You can safely call ``all()`` on either object and then you'll +definitely have a ``QuerySet`` to work with. + ``select_related()`` ~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3