From feed0cb63dd088348e88450e53af88c130ce1e12 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 4 Jul 2011 14:04:43 +0530 Subject: [PATCH] order files alphabetically --- edgware/files/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/edgware/files/models.py b/edgware/files/models.py index 790b296..2b2002f 100755 --- a/edgware/files/models.py +++ b/edgware/files/models.py @@ -103,6 +103,9 @@ class File(models.Model): fts_fields = ['title', 'description'] + class Meta: + ordering = ['title'] + @classmethod def filter_category(kls, category_id, qset): return qset.filter(categories=category_id)