diff options
Diffstat (limited to 'news')
-rw-r--r-- | news/models.py | 2 |
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'] |