day set to one before
This commit is contained in:
parent
1f09bab3e4
commit
df93dfe047
1 changed files with 1 additions and 1 deletions
|
@ -178,5 +178,5 @@ class VMDetail(models.Model):
|
|||
def end_date(self):
|
||||
end_date = self.terminated_at if self.terminated_at else timezone.now()
|
||||
months = relativedelta(end_date, self.created_at).months or 1
|
||||
end_date = self.created_at + relativedelta(months=months)
|
||||
end_date = self.created_at + relativedelta(months=months, days=-1)
|
||||
return end_date
|
||||
|
|
Loading…
Reference in a new issue