Open ernestofgonzalez opened 3 years ago
We should add support for hash ids.
A similar approach as django-rest-framework-serializer-extensions would work. I believe computing and passing the hashid in to_representation for fields should work.
django-rest-framework-serializer-extensions
to_representation
We'll start by supporting hashids for read only fields and go from there.
Now we're missing a DynamicSerializer inheriting from GetModelMixin and that decodes/encodes the hashids.
DynamicSerializer
GetModelMixin
We should add support for hash ids.
A similar approach as
django-rest-framework-serializer-extensions
would work. I believe computing and passing the hashid into_representation
for fields should work.