order by date

This commit is contained in:
sanj 2010-12-30 20:35:27 +05:30
parent 09dda827f5
commit b2d1c67b02

View File

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