ernestofgonzalez / django-dynamic-rest

MIT License
3 stars 1 forks source link

Support hash ids #5

Open ernestofgonzalez opened 3 years ago

ernestofgonzalez commented 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.

ernestofgonzalez commented 3 years ago

We'll start by supporting hashids for read only fields and go from there.

ernestofgonzalez commented 3 years ago

Now we're missing a DynamicSerializer inheriting from GetModelMixin and that decodes/encodes the hashids.