comparison bns_website/bands/admin.py @ 20:7fce0720f89b

Merging latest code with mine.
author Brian Neal <bgneal@gmail.com>
date Mon, 31 Oct 2011 20:47:29 -0500
parents 5348d2235497
children
comparison
equal deleted inserted replaced
19:ef4155f8c234 20:7fce0720f89b
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)