Changeset 9206 for django/trunk/tests/regressiontests/queries/models.py
- Timestamp:
- 10/08/08 04:45:27 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/regressiontests/queries/models.py
r9202 r9206 974 974 >>> print query.as_sql()[0] 975 975 SELECT U0."id" FROM "queries_tag" U0 976 977 Calling order_by() with no parameters removes any existing ordering on the 978 model. But it should still be possible to add new ordering after that. 979 >>> qs = Author.objects.order_by().order_by('name') 980 >>> 'ORDER BY' in qs.query.as_sql()[0] 981 True 976 982 """} 977 983
