<s> """<STR_LIT>""" <EOL> class GM2MFieldMixin ( object ) : <EOL> """<STR_LIT>""" <EOL> def value_from_object ( self , instance , name ) : <EOL> """<STR_LIT>""" <EOL> return None if not instance . pk else [ <EOL> x for x in getattr ( instance , name ) . all ( ) ] <EOL> def save_relation_data ( self , instance , name , value ) : <EOL> """<STR_LIT>""" <EOL> setattr ( instance , name , value ) </s>
