From 911e65ada72d6faeecd156d285ac661058aa0f35 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 28 Jan 2008 14:27:16 +0000 Subject: 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 --- docs/db-api.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') 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. -- cgit v1.3