Skip to content

Added Resource.prepare_list method #111

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

madsmtm
Copy link

@madsmtm madsmtm commented Nov 23, 2018

Moved the list preparation out of the Resource.serialize_list method, and into Resource.prepare_list, which allows for customised list preparation options.

This is useful is if you're using marshmallow, where simply calling Schema.load multiple times will prevent the pre and post processing methods to work properly, see here.

If this gets approved, I'll update the docs and test suite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant