From 0a8690659fff3fd0ec335801b1f57c9ccccd286b Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 11 Dec 2023 15:49:39 +0100 Subject: [PATCH] fix --- promotion/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/promotion/models.py b/promotion/models.py index 76425b8..4401faf 100644 --- a/promotion/models.py +++ b/promotion/models.py @@ -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