Django rest framework viewset

Hi, I want to change user password. I’ve already done the logic using genericapiview but want to switch to some of viewsets. The problem is that update, partial_update requires “id” in path. I don’t need and don’t want the “id” how can to figure it out ?

If you’re not specifying an id, how does the view know which object to work on?

My first reaction is that you could probably override the get_object method of the view class to prevent needing the parameter.

(Caveat: I know very little beyond the basics of DRF. This is mostly a guess from what I can see quickly at https://www.cdrf.co/)