Hi !
I am currently writing an API for a django project, and using django-piston for this. However, I need to customize the way certain base types are serialized.
More precisely, my models are subclassed from a special Model
class, which inherits from django.db.models.base.ModelBase
, but cannot be serialized as regular django models ... Therefore, I would like to override the serializer for all subclasses of this special Model
class.
I don't know piston well ... I've looked at the code, and the mapping type->serializer
(for base types) seems to be hard-coded.
Does anybody know if there is a standard way to override it ???