Changeset 9254
- Timestamp:
- 10/24/08 01:24:04 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/regressiontests/queries/models.py
r9221 r9254 975 975 True 976 976 977 Make sure bump_prefix() (an internal Query method) doesn't (re-)break. 978 >>> query = Tag.objects.values_list('id').order_by().query 979 >>> query.bump_prefix() 980 >>> print query.as_sql()[0] 981 SELECT U0."id" FROM "queries_tag" U0 977 Make sure bump_prefix() (an internal Query method) doesn't (re-)break. It's 978 sufficient that this query runs without error. 979 >>> qs = Tag.objects.values_list('id', flat=True).order_by('id') 980 >>> qs.query.bump_prefix() 981 >>> list(qs) 982 [1, 2, 3, 4, 5] 982 983 983 984 Calling order_by() with no parameters removes any existing ordering on the
