  
      def get_serializer_context(self):
          return {
              'request': self.request,
              'format': self.kwargs.get('format', None)
          }
  
      def get_serializer(self, data=None, files=None, instance=None, kwargs=None):
          # TODO: add support for files
          # TODO: add support for seperate serializer/deserializer
 
</s> remove     def get_serializer(self, data=None, files=None, instance=None, kwargs=None):
        # TODO: add support for files
        # TODO: add support for seperate serializer/deserializer
 </s> add     def get_serializer_class(self):
        """
        Return the class to use for the serializer.
        Use `self.serializer_class`, falling back to constructing a
        model serializer class from `self.model_serializer_class`
        """ </s> remove         kwargs = kwargs or {}
 </s> add  </s> remove     def get_pagination_serializer(self, page=None):
        serializer_class = self.pagination_serializer_class
 </s> add     def get_serializer(self, data=None, files=None, instance=None):
        # TODO: add support for files
        # TODO: add support for seperate serializer/deserializer
        serializer_class = self.get_serializer_class() </s> remove     pagination_serializer_class = api_settings.PAGINATION_SERIALIZER
    paginate_by = api_settings.PAGINATE_BY
 </s> add 
            'format': self.format,
            'view': self
  
      def get_serializer_context(self):
          return {
              'request': self.request,
            'format': self.format,
            'view': self
          }
  
      def get_serializer(self, data=None, files=None, instance=None, kwargs=None):
          # TODO: add support for files
          # TODO: add support for seperate serializer/deserializer
keep keep keep keep replace keep keep keep keep keep
 Expand pagination support, add docs 
rest_framework/generics.py