diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-10-23 13:49:07 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-10-23 13:49:07 +0000 |
| commit | abcb70e5245095628c4a00816138af9382e306fd (patch) | |
| tree | ac3f8102d4d74d2524106b43e5602f1d8f2c0d5a /docs/db-api.txt | |
| parent | 3940277792a33774bb17c622cdd753deb3ee17c6 (diff) | |
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
Diffstat (limited to 'docs/db-api.txt')
| -rw-r--r-- | docs/db-api.txt | 11 |
1 files changed, 11 insertions, 0 deletions
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()`` ~~~~~~~~~~~~~~~~~~~~ |
