Tag restframework

Building Custom Django Fields

I recently needed to implement a special kind of field in Django Rest Framework that turned out to be a fun experiment. It includes per-request-format representation and altering how relationships are represented.