#NEWLINE# def test_ordering_on_different_field( self ) : #NEWLINE# #INDENT# class F ( FilterSet ) : #NEWLINE# #INDENT# class Meta ( ) : #NEWLINE# #INDENT# model = User #NEWLINE# fields = [ 'username' , 'status' ] #NEWLINE# order_by = True #NEWLINE# #UNINDENT# #UNINDENT# f = F ( { #NEWLINE# #INDENT# 'o' : 'username' , #NEWLINE# #UNINDENT# } , queryset = self . qs ) #NEWLINE# self . assertQuerysetEqual ( f . qs , [ 'aaron' , 'alex' , 'carl' , 'jacob' ] , ( lambda o : o . username ) ) #NEWLINE# f = F ( { #NEWLINE# #INDENT# 'o' : 'status' , #NEWLINE# #UNINDENT# } , queryset = self . qs ) #NEWLINE# self . assertQuerysetEqual ( f . qs , [ 'carl' , 'alex' , 'jacob' , 'aaron' ] , ( lambda o : o . username ) )