mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-01 11:22:24 +02:00
Change comment to be more readable
This commit is contained in:
parent
53d35094c0
commit
5164ebbb95
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue