From d5d3c3ad18305f78e7d1d8a659c21f09d4d36762 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 15 Jun 2019 11:25:19 +0200 Subject: [PATCH] Order common supplies against their order then name --- manuels/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuels/models.py b/manuels/models.py index 802edb2..139a670 100644 --- a/manuels/models.py +++ b/manuels/models.py @@ -239,7 +239,7 @@ class CommonSupply(BaseModel): class Meta: verbose_name = 'fourniture commune' verbose_name_plural = 'fournitures communes' - ordering = ('order',) + ordering = ('order', 'name',) name = models.CharField('nom', max_length=200) order = models.IntegerField('ordre')