DEV Community

Discussion on: Obfuscate Django models ids by encoding them as non-sequential non-predictable strings

Collapse
 
stephenmb profile image
Stephen B

Huge thanks for writing this, exactly what I needed. It worked seamlessly with DRF, and easy enough to also add a HyperlinkedIdentityField to a serializer to generate the URLs if you want to avoid to_representation or to_internal_value.