Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make attribute getter function configurable #52

Closed
sloria opened this issue Oct 21, 2014 · 0 comments
Closed

Make attribute getter function configurable #52

sloria opened this issue Oct 21, 2014 · 0 comments

Comments

@sloria
Copy link
Member

sloria commented Oct 21, 2014

Currently, marshmallow.utils.get_value is used pull values from many different types of objects (both simple and complex types).

It may be useful to override this behavior, e.g. via a class Meta option, when you know exactly what type of objects you will be serializing and how to pull values from them.

I see two use cases for this:

  • Handling objects that get_value will not work with
  • Optimizing serialization
@sloria sloria changed the title [docs] Make attribute getter function configurable Make attribute getter function configurable Oct 21, 2014
@sloria sloria added this to the 1.0.0 stable release milestone Oct 25, 2014
@sloria sloria closed this as completed in 9d82f9c Oct 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant