X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/bb8272178c6c35fcb92bc5a08342faf40d3fab1b..d36309a6506ad8ed03626b84ff49b880665bc101:/sommitrealweird/blog/models.py?ds=sidebyside diff --git a/sommitrealweird/blog/models.py b/sommitrealweird/blog/models.py index 6b0d254..7573674 100644 --- a/sommitrealweird/blog/models.py +++ b/sommitrealweird/blog/models.py @@ -24,6 +24,9 @@ class BlogEntry(models.Model): def get_absolute_url(self): return u'%s%04d/%02d/%02d/%s/' %(settings.BLOG_ROOT, self.publish_date.year, self.publish_date.month, self.publish_date.day, self.slug) + class Meta: + ordering = ['-publish_date'] + class Admin: pass