Mercurial > public > bravenewsurf
annotate 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 |
rev | line source |
---|---|
bgneal@6 | 1 """ |
bgneal@6 | 2 Automatic admin definitions for the models in the bands application. |
bgneal@6 | 3 |
bgneal@6 | 4 """ |
bgneal@6 | 5 from django.contrib import admin |
bgneal@6 | 6 from bands.models import Band |
bob@14 | 7 from news.models import News |
bgneal@6 | 8 |
bgneal@6 | 9 |
bgneal@6 | 10 class BandAdmin(admin.ModelAdmin): |
bgneal@6 | 11 list_display = ['name', 'url', 'order'] |
bgneal@6 | 12 list_editable = ['order'] |
bgneal@6 | 13 |
bgneal@6 | 14 admin.site.register(Band, BandAdmin) |
bob@14 | 15 admin.site.register(News) |