X-Git-Url: https://git.0d.be/?p=chloro.git;a=blobdiff_plain;f=chloro%2Fphyll%2Fmodels.py;h=230738930d3be022e583bdfde77b5ddb6b141af0;hp=b8872c4d61b8d0f5d6f732069e53f7581c97ace8;hb=80e13c7d63c7ac56be0c48ccb803a171db63167e;hpb=8ad496d5f7bfbcf67473532bb26c804cf478910c diff --git a/chloro/phyll/models.py b/chloro/phyll/models.py index b8872c4..2307389 100644 --- a/chloro/phyll/models.py +++ b/chloro/phyll/models.py @@ -29,5 +29,8 @@ class Note(models.Model): creation_timestamp = models.DateTimeField(auto_now_add=True) last_update_timestamp = models.DateTimeField(auto_now=True) + class Meta: + ordering = ['-creation_timestamp'] + def get_absolute_url(self): return '/%s/' % self.slug