Django

Code

Changeset 8054

Show
Ignore:
Timestamp:
07/22/08 13:56:50 (4 months ago)
Author:
mtredinnick
Message:

Changed the test from [8052] so that it is insensitive to whether a database
sorts NULLs first or last in a sequence or results.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/queries/models.py

    r8053 r8054  
    834834Bug #7791 -- there were "issues" when ordering and distinct-ing on fields 
    835835related via ForeignKeys. 
    836 >>> Note.objects.order_by('extrainfo__info').distinct(
    837 [<Note: n3>, <Note: n1>, <Note: n2>] 
     836>>> len(Note.objects.order_by('extrainfo__info').distinct()
     837
    838838 
    839839"""}