From 5164ebbb9554c6b7e54857e6a824961e0639b5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Sat, 12 Aug 2023 20:58:09 +0200 Subject: [PATCH] Change comment to be more readable --- la_chariotte/order/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/la_chariotte/order/models.py b/la_chariotte/order/models.py index 7b335a3..e2c3c33 100644 --- a/la_chariotte/order/models.py +++ b/la_chariotte/order/models.py @@ -153,7 +153,7 @@ class Item(models.Model): ordered_nb = models.IntegerField(default=0) def compute_ordered_nb(self): - """Computes the number of orders for this item.""" + """Computes the number of times this item has been ordered""" ordered_nb = 0 for order in self.orders.all(): ordered_nb += order.nb