summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-10-27 00:11:11 +0200
committerDan McGee <dan@archlinux.org>2012-10-27 00:11:11 +0200
commitbdee24b9d1279de67dd238e3644c2efff314bd7b (patch)
treedf6fd4b2fbc8787f984611708d8372efc13284b4 /news
parent2ee662c77cf559d6ea82c9096533abfcd38f4801 (diff)
downloadarchweb-bdee24b9d1279de67dd238e3644c2efff314bd7b.tar.gz
archweb-bdee24b9d1279de67dd238e3644c2efff314bd7b.tar.xz
Cleanup meta model attributes
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news')
-rw-r--r--news/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news/models.py b/news/models.py
index 2efea57..9123270 100644
--- a/news/models.py
+++ b/news/models.py
@@ -24,7 +24,7 @@ class News(models.Model):
db_table = 'news'
verbose_name_plural = 'news'
get_latest_by = 'postdate'
- ordering = ['-postdate']
+ ordering = ('-postdate',)
def set_news_fields(sender, **kwargs):
news = kwargs['instance']