Django Rest Framework — Writing Serializers that Differ From Your Internal Data Model

Adrienne Domingus
2 min readSep 22, 2020

No matter how hard we try to get our data model correct (and even if we’ve done so!) sometimes by the time we need to use it, either for a public-facing API or an internal one, we need things to look a little different. Django Rest Framework(DRF) has some useful tools for allowing us to build serializers based on our models that differ somewhat…