title: Django rest change users password view
body: <p>I am using Django Rest to create a simple API.I need to create a view where the user can change his/hers password.I am using the default Django user model and a simple <code>UserSerializer</code>. There is method called <code>set_password</code> but i cant find a way the use it corrently with the user seriliazer.I cant find any solution anywhere.</p>
  
  <p>UserSelializer:</p>
  
  <pre><code>class UserSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = User
          fields = ('id', "username", 'email', 'first_name', 'last_name', 'password')
  </code></pre>
  
  <p>View(ClassedBased): Here is an example (i have no idea what i am doing here):</p>
  
  <pre><code>    class UserChangePassword(APIView):
  
          def patch(self, request):
              user = self.request.user
              serialized = UserSerializer(data=request.DATA)
              if serialized.is_valid():
                  user.set_password(serialized.data['password'])
                  user.save()
                  return Response(status=status.HTTP_205_RESET_CONTENT)
              else:
              return Response(serialized.errors, status=status.HTTP_400_BAD_REQUEST)
  </code></pre>
  
  <p>Mind that i want to post a json script to change to password. Something like this : </p>
  
  <pre><code> {
      "old_password": "123", 
      "new_password": "12345"
  }
  </code></pre>