[Fixed]-Django rest framework custom post not allowed

1👍

Your @detail_route is supposed to work for a single object, and actually you’re creating the urls like:

/movies/123/set_password/

So either correct the urls on your client, or, if you want to change something on queryset instead of a single object, decorate you view with the @list_route.

Leave a comment