comparison bns_website/bands/admin.py @ 17:5348d2235497

Moved the news admin to its own file and removed it from Brian's band admin. I'm an idiot.
author Bob Mourlam <bob.mourlam@gmail.com>
date Mon, 31 Oct 2011 20:30:37 -0500
parents 2de51cc51d3a
children
comparison
equal deleted inserted replaced
15:6b664ec90f2f 17:5348d2235497
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
8 7
9 8
10 class BandAdmin(admin.ModelAdmin): 9 class BandAdmin(admin.ModelAdmin):
11 list_display = ['name', 'url', 'order'] 10 list_display = ['name', 'url', 'order']
12 list_editable = ['order'] 11 list_editable = ['order']
13 12
14 admin.site.register(Band, BandAdmin) 13 admin.site.register(Band, BandAdmin)
15 admin.site.register(News)