Order common supplies against their order then name

This commit is contained in:
Gabriel Augendre 2019-06-15 11:25:19 +02:00
parent 6b125b6f0f
commit d5d3c3ad18

View file

@ -239,7 +239,7 @@ class CommonSupply(BaseModel):
class Meta: class Meta:
verbose_name = 'fourniture commune' verbose_name = 'fourniture commune'
verbose_name_plural = 'fournitures communes' verbose_name_plural = 'fournitures communes'
ordering = ('order',) ordering = ('order', 'name',)
name = models.CharField('nom', max_length=200) name = models.CharField('nom', max_length=200)
order = models.IntegerField('ordre') order = models.IntegerField('ordre')