X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/bb8272178c6c35fcb92bc5a08342faf40d3fab1b..c939dde77d9b8e0e4256f0f16e99206f55908288:/sommitrealweird/blog/models.py?ds=inline 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