#NEWLINE# def test_queryset_with_translated_objects_can_be_pickled( self ) : #NEWLINE# #INDENT# with translation . override ( 'en' ) : #NEWLINE# #INDENT# normal = Normal . objects . create ( shared_field = 'Shared' , translated_field = 'English' ) #NEWLINE# #UNINDENT# qs = Normal . objects . all ( ) #NEWLINE# serialized_repr = pickle . dumps ( qs ) #NEWLINE# unpickled = pickle . loads ( serialized_repr ) #NEWLINE# self . assertEqual ( unpickled . model , qs . model ) #NEWLINE# self . assertEqual ( unpickled . get ( pk = normal . pk ) , unpickled )