Django

Code

Changeset 7286

Show
Ignore:
Timestamp:
03/18/08 05:33:37 (7 months ago)
Author:
mtredinnick
Message:

queryset-refactored: Added a test to show that ordering on multi-valued fields
might not be what is expected.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/queryset-refactor/tests/regressiontests/queries/models.py

    r7285 r7286  
    427427# ForeignKey) is legal, but the results might not make sense. That isn't 
    428428# Django's problem. Garbage in, garbage out. 
    429 >>> Item.objects.all().order_by('tags'
    430 [...
     429>>> Item.objects.all().order_by('tags', 'id'
     430[<Item: one>, <Item: two>, <Item: one>, <Item: two>, <Item: four>
    431431 
    432432# If we replace the default ordering, Django adjusts the required tables