(bill, valide_days)
Upgrade bill BILL valide for VALIDE_DAYS from today. And update
  bill account_type.
Upgrade bill BILL valide for VALIDE_DAYS from today. And update
  bill account_type.
Upgrade bill BILL valide for VALIDE_DAYS from today . And update bill account_type .
def upgrade_bill (bill, valide_days):
  """
  Upgrade bill BILL valide for VALIDE_DAYS from today. And update
  bill account_type.
  """
  bill.account_type = bill.upgrade_type
  start_date = datetime.datetime.now()
  expire_date=start_date+datetime.timedelta(days=valide_days)
  bill.start_date=start_date
  bill.expire_date=expire_date
  bill.save()
def upgrade_bill ( bill , valide_days ) : bill . account_type = bill . upgrade_type start_date = datetime . datetime . now ( ) expire_date = start_date + datetime . timedelta ( days = valide_days ) bill . start_date = start_date bill . expire_date = expire_date bill . save ( )