serpy icon indicating copy to clipboard operation
serpy copied to clipboard

Pass a context in depth of serialize calls (API changed)

Open Harut opened this issue 7 years ago • 0 comments

Currently serpy fields are both stateless and context-less, i.e. you can not access anything except the current value from inside of a serializers. While statelesness makes serpy fast and clear, there is no real reason not to pass context to lower levels of data serializers.

Most obvious use case: serialize URLs as absolute depending on a request.

Harut avatar Mar 10 '17 09:03 Harut