HI i have a field in database whose value is null = true but i need to update it timely with the integers .I am running this script on terminal
getW = get_HomeTeam_myworld.w
getL = get_HomeTeam_myworld.l
if winloss == "w":
getW = getW + 1
#getW.save()
print getW
but it gives the following error
unsupported operand type(s) for +: 'NoneType' and 'int'
please suggest where i am doing mistake.