code: def get_serializer_class(self, action=None):
          
          if action is not None:
              return getattr(self, '%s_serializer_class' % action)
          else:
              return super(GenericViewSet, self).get_serializer_class()
docs: Return the serializer class depending on request method.
          Attribute of proper serializer should be defined.