summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-01-28 14:27:16 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-01-28 14:27:16 +0000
commit911e65ada72d6faeecd156d285ac661058aa0f35 (patch)
treeca00f1c4b650960ddd9e92f29ed86d3dbecf82d7 /docs
parente016a4f987efc6c43ea6c80540456cdd161b2434 (diff)
queryset-refactor: Added a way to clear all default ordering from a queryset,
by calling order_by() with no parameters. git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7042 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/db-api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt
index a4d69772cb..342f635219 100644
--- a/docs/db-api.txt
+++ b/docs/db-api.txt
@@ -533,6 +533,10 @@ primary key if there is no ``Meta.ordering`` specified. For example::
...since the ``Blog`` model has no default ordering specified.
+**New in Django development version:** If you don't want any ordering to be
+applied to a query, not even the default ordering, call ``order_by()`` with no
+parameters.
+
**New in Django development version:** The syntax for ordering across related
models has changed. See the `Django 0.96 documentation`_ for the old behaviour.