Skip to content

Conversation

@Harut
Copy link
Contributor

@Harut Harut commented Mar 10, 2017

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.

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