comparison 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
comparison
equal deleted inserted replaced
13:40d86ae48db1 14:2de51cc51d3a
2 Automatic admin definitions for the models in the bands application. 2 Automatic admin definitions for the models in the bands application.
3 3
4 """ 4 """
5 from django.contrib import admin 5 from django.contrib import admin
6 from bands.models import Band 6 from bands.models import Band
7 from news.models import News
7 8
8 9
9 class BandAdmin(admin.ModelAdmin): 10 class BandAdmin(admin.ModelAdmin):
10 list_display = ['name', 'url', 'order'] 11 list_display = ['name', 'url', 'order']
11 list_editable = ['order'] 12 list_editable = ['order']
12 13
13
14 admin.site.register(Band, BandAdmin) 14 admin.site.register(Band, BandAdmin)
15 admin.site.register(News)