From b2d1c67b022478f339279e3394328883f2213e5a Mon Sep 17 00:00:00 2001 From: sanj Date: Thu, 30 Dec 2010 20:35:27 +0530 Subject: [PATCH] order by date --- padmaTexts/texts/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/padmaTexts/texts/models.py b/padmaTexts/texts/models.py index 665dc7e..9eb6d9a 100644 --- a/padmaTexts/texts/models.py +++ b/padmaTexts/texts/models.py @@ -13,6 +13,8 @@ class PadmaText(models.Model): show_users = models.CharField(max_length=512, blank=True, help_text="Comma separated usernames") show_layers = models.CharField(max_length=256, blank=True, help_text="Comma separated - for eg. transcript, description") + class Meta: + ordering = ['-date'] def __unicode__(self): return self.title