Change comment to be more readable

This commit is contained in:
Alexis Métaireau 2023-08-12 20:58:09 +02:00
parent 53d35094c0
commit 5164ebbb95

View file

@ -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