Mercurial > public > bravenewsurf
comparison bns_website/bands/admin.py @ 6:48ff23eab86a
Enabled the admin. Created a "bands" app with a band model.
Created a generic view to display the bands.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 29 Oct 2011 17:11:58 -0500 |
parents | |
children | 2de51cc51d3a |
comparison
equal
deleted
inserted
replaced
5:04991ccaf30c | 6:48ff23eab86a |
---|---|
1 """ | |
2 Automatic admin definitions for the models in the bands application. | |
3 | |
4 """ | |
5 from django.contrib import admin | |
6 from bands.models import Band | |
7 | |
8 | |
9 class BandAdmin(admin.ModelAdmin): | |
10 list_display = ['name', 'url', 'order'] | |
11 list_editable = ['order'] | |
12 | |
13 | |
14 admin.site.register(Band, BandAdmin) |