@property
    def get_age(self):
        age = relativedelta(dt1=date.today(), dt2=self.birthday).years
        if age < 8:
            return '0-7'
        elif age < 13:
            return '8-12'
        elif age < 18:
            return '13-17'
        elif age < 22:
            return '18-21'
        elif age < 28:
            return '22-27'
        elif age < 38:
            return '28-37'
        elif age < 51:
            return '38-50'
        else:
            return 'near death'
dataset/ETHPy150Open upTee/upTee/uptee/accounts/models.py/UserProfile.get_age/original