#NEWLINE# def test_specified_ordering( self ) : #NEWLINE# #INDENT# "\n        Let's use a custom ModelAdmin that changes the ordering, and make sure\n        it actually changes.\n        " #NEWLINE# class BandAdmin ( ModelAdmin ) : #NEWLINE# #INDENT# ordering = ( 'rank' , ) #NEWLINE# #UNINDENT# ma = BandAdmin ( Band , None ) #NEWLINE# names = [ b . name for b in ma . queryset ( None ) ] #NEWLINE# self . assertEqual ( [ 'Radiohead' , 'Van Halen' , 'Aerosmith' ] , names )