if value has an attribute '__iter__' and value is not an instance of six.text_type and value doesnt have an attribute '_meta',
if ( hasattr ( value , '__iter__' ) and not isinstance ( value , six . text_type ) and not hasattr ( value , '_meta' ) ) :