annotate bns_website/bands/admin.py @ 23:1357c69e887d

- I added a little New badge for posts in the last 3 days. - I added a <div class=""> tag to the news posts to group them within the same Bootstrap CSS alert block. I'm not sure if it's a good idea or not, but it's kind of cool.
author Bob Mourlam <bob.mourlam@gmail.com>
date Mon, 31 Oct 2011 22:08:45 -0500
parents 5348d2235497
children
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
bgneal@6 7
bgneal@6 8
bgneal@6 9 class BandAdmin(admin.ModelAdmin):
bgneal@6 10 list_display = ['name', 'url', 'order']
bgneal@6 11 list_editable = ['order']
bgneal@6 12
bgneal@6 13 admin.site.register(Band, BandAdmin)