#NEWLINE# def test_m2m_with_unicode_reference( self ) : #NEWLINE# #INDENT# '\n        Regression test for #6045: references to other models can be unicode\n        strings, providing they are directly convertible to ASCII.\n        ' #NEWLINE# m1 = UnicodeReferenceModel . objects . create ( ) #NEWLINE# m2 = UnicodeReferenceModel . objects . create ( ) #NEWLINE# m2 . others . add ( m1 ) #NEWLINE# m2 . save ( ) #NEWLINE# list ( m2 . others . all ( ) )