toastdriven / restless

A lightweight REST miniframework for Python.
http://restless.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
832 stars 107 forks source link

Added `Resource.prepare_list` method #111

Open madsmtm opened 5 years ago

madsmtm commented 5 years ago

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