Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added unit test that confirms #404

git-svn-id: http://code.djangoproject.com/svn/django/trunk@614 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 95e8688d7f8c9393d0e1112b52e22e713f5fa25f 1 parent 5bdf1da
Adrian Holovaty authored September 02, 2005

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  tests/testapp/models/ordering.py
5  tests/testapp/models/ordering.py
@@ -55,4 +55,9 @@ def __repr__(self):
55 55
 # Use the "offset" parameter with "limit" to offset the result list.
56 56
 >>> articles.get_list(order_by=['headline'], offset=1, limit=2)
57 57
 [Article 2, Article 3]
  58
+
  59
+# Use '?' to order randomly. (We're using [...] in the output to indicate we
  60
+# don't know what order the output will be in.
  61
+>>> articles.get_list(order_by=['?'])
  62
+[...]
58 63
 """

0 notes on commit 95e8688

Please sign in to comment.
Something went wrong with that request. Please try again.