This commit is contained in:
Cayo Puigdefabregas 2023-12-11 15:49:39 +01:00
parent c84bea8d06
commit 0a8690659f
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class Promotion(models.Model):
reverse_lazy("promotion:contract"),
code
)
return url
def get_discount(self, price):
return price - price*0.25