Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Sometimes SerializerSpecPlugin.get_value() wants to be able to call through to the default serialization #35

Open
pmg103 opened this issue Nov 26, 2019 · 0 comments

Comments

@pmg103
Copy link
Contributor

pmg103 commented Nov 26, 2019

SerializationSpecPlugin can override modify_queryset() and get_value() for the two steps in its lifecycle: fetching any required data, and then outputting a value based on that.

It can also specify a serialization_spec which is then used to build the queryset -- but not to output the result. I feel like it should be possible instead of overriding the whole get_value() process to have a way to say "Give me the instance, let me DO THINGS to it, but then serialize according to the spec as you were going to anyway."

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

No branches or pull requests

1 participant