Browse files

Added section to docs/db-api.txt about ordering by fields in other ta…


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 2483ed7 commit 5355ec999292b17fc2788ddb3603d0d8a71a6a1e @adrianholovaty adrianholovaty committed Jan 20, 2006
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/db-api.txt
5 docs/db-api.txt
@@ -273,6 +273,11 @@ so::
+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.

0 comments on commit 5355ec9

Please sign in to comment.