diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-01-21 03:30:35 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-01-21 03:30:35 +0000 |
| commit | 6ce5f51c55875e6613fa055b5c00a233eb9533f7 (patch) | |
| tree | 496c18ff8a000c014755373ece167c75f0238a01 /docs/db-api.txt | |
| parent | f71f56785d980dfd58178fda11041bdeeec17301 (diff) | |
magic-removal: Merged to [2079]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2080 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/db-api.txt')
| -rw-r--r-- | docs/db-api.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt index 1fe77ebfb0..4b906bb87d 100644 --- a/docs/db-api.txt +++ b/docs/db-api.txt @@ -308,6 +308,11 @@ so:: polls.get_list(order_by=['?']) +To order by a field in a different table, add the other table's name and a dot, +like so:: + + choices.get_list(order_by=('polls.pub_date', 'choice')) + There's no way to specify whether ordering should be case sensitive. With respect to case-sensitivity, Django will order results however your database backend normally orders them. |
