mikeywaites / kim

Kim: A JSON Serialization and Marshaling framework
http://kim.readthedocs.org/en/latest/
Other
317 stars 17 forks source link

Fix issue where field.opts.attribute_name would always be None #175

Closed jackqu7 closed 6 years ago

jackqu7 commented 6 years ago

attribute_name should be set to the name of this field's attribute on it's parent Mapper. This provides an index to self.fields and is required for nested roles. (See example in code comments.)