changeset 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 abe08d74dab3
children 6cb0d49187ae
files bns_website/news/models.py bns_website/templates/news/news_list.html
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bns_website/news/models.py	Mon Oct 31 20:38:43 2011 -0500
+++ b/bns_website/news/models.py	Mon Oct 31 20:55:02 2011 -0500
@@ -16,6 +16,7 @@
 
     class Meta:
         verbose_name_plural="News"
+        ordering = ['-date']
 
     def __unicode__(self):
         return self.title
--- a/bns_website/templates/news/news_list.html	Mon Oct 31 20:38:43 2011 -0500
+++ b/bns_website/templates/news/news_list.html	Mon Oct 31 20:55:02 2011 -0500
@@ -26,6 +26,4 @@
 {% endfor %}
 </dl>
 
-</div>
-
 {% endblock %}