def get_fraction(self):
    if (self.max > 0):
        return (self.progress / float(self.max))
    else:
        return 'N/A'
def get_fraction(self):
    if (self.max > 0):
        return (self.progress / float(self.max))
    else:
        return 'N/A'