Mercurial > public > bravenewsurf
diff bns_website/bands/admin.py @ 14:2de51cc51d3a
My first stab at the news app. The template is a little dull, but it's a start.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Sun, 30 Oct 2011 21:33:45 -0500 |
parents | 48ff23eab86a |
children | 5348d2235497 |
line wrap: on
line diff
--- a/bns_website/bands/admin.py Sun Oct 30 18:29:41 2011 -0500 +++ b/bns_website/bands/admin.py Sun Oct 30 21:33:45 2011 -0500 @@ -4,11 +4,12 @@ """ from django.contrib import admin from bands.models import Band +from news.models import News class BandAdmin(admin.ModelAdmin): list_display = ['name', 'url', 'order'] list_editable = ['order'] - admin.site.register(Band, BandAdmin) +admin.site.register(News)