From fdc4e36da7a35467a5d87b2e81001b094533be02 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Fri, 25 Aug 2017 13:02:10 +0100 Subject: [PATCH] Correction du tri des consoles par nom --- collection/games/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/collection/games/models.py b/collection/games/models.py index 68a5fd1..804ed1e 100644 --- a/collection/games/models.py +++ b/collection/games/models.py @@ -11,6 +11,7 @@ class Console(Collection): return '%s' % self.name class Meta: + ordering = ('name',) verbose_name = _('console') verbose_name_plural = _('consoles') @@ -67,5 +68,6 @@ class Timeline(BaseTimeline): DEFAULT_CHOICE = Item.DEFAULT_CHOICE class Meta: + ordering = ('-date',) verbose_name = _('Timeline') verbose_name_plural = _('Timelines')