add method to convert from a set of model to a set of attributes
missing import in model
fix indentation
Merge pull request #81 from takashiyonebayashi/master

Add method to convert a set of models to a set of attributes for that model