How to get the detailed page by slug and not id in Django Rest Framework class based views
I am building an API using Django Rest Framework. I have the /api/localities endpoint where all of the objects on my database are displayed. Now I want to create the endpoint for a single page of a particular locality, and I want to make it by slug and not id for example /api/localities/munich. I am… Read More How to get the detailed page by slug and not id in Django Rest Framework class based views