'Returns text describing the release type e.g. "alpha", "stable" etc.'

def release_type(self):

    if (self.release is None):
        return None
    types = ['dev', 'alpha', 'beta', 'rc']
    return types[(self.release / 64)]
