I am solving an equivalent problem to the following. I need to serialize django models which have following criteria:
- Base (abstract) class from django model containing a "type" field where I can store type of goods (i.e. fruit, clothes...)
- Derived classes for different type of goods (fruit has weight, clothes have color)
I would like to serialize (into JSON) the list of any goods for REST API framework. I do not know how to make it the best to use framework capabilities of serialized object validation etc.