title: 405 Method Post Not Allowed
body: <p>I wrote the following code:</p>
  <pre><code>class UserViewSet(viewsets.ReadOnlyModelViewSet):
      queryset = User.objects.all()
      serializer_class = UserSerializer
      permission_classes = [IsCreation|permissions.IsAuthenticated]
  
      def change_password(self, request):
          print(request.user)
  </code></pre>
  <p>With the corresponding route in <code>urls.py</code>:</p>
  <pre><code>path('api/users/password', views.UserViewSet.as_view({'post': 'change_password'}))
  </code></pre>
  <p>But when I make a request to <code>'api/users/password/'</code>, I get this error:</p>
  <pre><code>{
      &quot;detail&quot;: &quot;Method \&quot;POST\&quot; not allowed.&quot;
  }
  </code></pre>
  <p>What am I doing wrong here?</p>