bgneal@6: """ bgneal@6: Automatic admin definitions for the models in the bands application. bgneal@6: bgneal@6: """ bgneal@6: from django.contrib import admin bgneal@6: from bands.models import Band bob@14: from news.models import News bgneal@6: bgneal@6: bgneal@6: class BandAdmin(admin.ModelAdmin): bgneal@6: list_display = ['name', 'url', 'order'] bgneal@6: list_editable = ['order'] bgneal@6: bgneal@6: admin.site.register(Band, BandAdmin) bob@14: admin.site.register(News)