title: Django REST Framework show multiple forms on HTML view
body: <p>I have a ViewSet using Django REST Framework that has both standard and custom routes. The serializer for each route is different.</p>
  
  <p>Example:</p>
  
  <pre><code>class UserViewSet(ViewSet):
  
      model = User
      serializer_class = UserSerializer
  
      @decorators.detail_route(methods=['put'])
      def change_password(self, request, pk, *args, **kwargs):
          serializer = UserChangePasswordSerializer(data=request.data)
          ...
  
      @decorators.detail_route(methods=['put'])
      def update_prefs(self, request, *args, **kwargs):
          serializer = UserPreferencesSerializer(data=request.data)
          ...
  </code></pre>
  
  <p>I have everything working such that I can perform standard get, post, put, delete actions on the User object and the two extra routes work. However, I can't figure out how to make the HTML forms for the custom routes display when using the <code>BrowsableAPIRenderer</code>. It would be very handy for developers to be able to see forms demonstrating the fields that are expected on the above put methods, for example.</p>
  
  <p>I tried adding get methods for the two routes, but this is non-sensical for the first one. Regardless, I don't see the right serializer displayed when I go to the URL for the route, I see the serializer specified in <code>serializer_class</code>.</p>
  
  <p>About the only thing I haven't tried is overriding <code>get_serializer_class()</code> because this involves putting knowledge of every serializer for every route in a single place rather than being able to specify the serializer within the route method itself... is this the way I should be trying to get the desired effect?</p>