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']