#NEWLINE# def test_regression_8063( self ) : #NEWLINE# #INDENT# "\n        Regression test for #8063: limiting a query shouldn't discard any\n        extra() bits.\n        " #NEWLINE# qs = User . objects . all ( ) . extra ( where = [ 'id=%s' ] , params = [ self . u . id ] ) #NEWLINE# self . assertQuerysetEqual ( qs , [ '<User: fred>' ] ) #NEWLINE# self . assertQuerysetEqual ( qs [ : 1 ] , [ '<User: fred>' ] )