From 4426a52505daba247a0ed3989c0bc1fcf788ce5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Thu, 21 Sep 2017 20:21:35 +0200 Subject: [PATCH] Order `Publications` by date by default --- mainsite/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mainsite/models.py b/mainsite/models.py index 1d8a070..86930d6 100644 --- a/mainsite/models.py +++ b/mainsite/models.py @@ -25,3 +25,6 @@ class Publication(models.Model): if self.custom_name: return self.custom_name return 'BOcal n°{}'.format(self.num) + + class Meta: + ordering = ['date']