updated whitelist func to restore attrs after save
Merge pull request #3 from Chili-Man/keep_attrs_after_save

updated whitelist func to restore attrs after save