Mercurial > public > bravenewsurf
comparison bns_website/news/models.py @ 21:687af3cb0525
I change the news model to have reverse chronological ordering.
I removed a rogue </div> tab from the news_list.html template.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Mon, 31 Oct 2011 20:55:02 -0500 |
parents | 2de51cc51d3a |
children | 1357c69e887d |
comparison
equal
deleted
inserted
replaced
18:abe08d74dab3 | 21:687af3cb0525 |
---|---|
14 | 14 |
15 | 15 |
16 | 16 |
17 class Meta: | 17 class Meta: |
18 verbose_name_plural="News" | 18 verbose_name_plural="News" |
19 ordering = ['-date'] | |
19 | 20 |
20 def __unicode__(self): | 21 def __unicode__(self): |
21 return self.title | 22 return self.title |