Skip to content

Added Resource.prepare_list method#111

Open
madsmtm wants to merge 1 commit intotoastdriven:masterfrom
madsmtm:add-prepare-list
Open

Added Resource.prepare_list method#111
madsmtm wants to merge 1 commit intotoastdriven:masterfrom
madsmtm:add-prepare-list

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