Order Publications by date by default

This commit is contained in:
Théophile Bastian 2017-09-21 20:21:35 +02:00
parent a5e73d284b
commit 4426a52505

View file

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