def METHOD_NAME(self):
    """
    Allow different serializers for certain actions.
    """
    if self.action == "list":
        if hasattr(self, "list_serializer_class"):
            return self.list_serializer_class
    return self.serializer_class