bgneal@820: """Admin definitions for the bandmap application. bgneal@820: bgneal@820: """ bgneal@820: from django.contrib import admin bgneal@820: bgneal@820: from bandmap.models import BandEntry bgneal@820: bgneal@820: bgneal@820: class BandEntryAdmin(admin.ModelAdmin): bgneal@820: list_display = ['name', 'date_submitted', 'date_approved', 'is_active', bgneal@820: 'is_approved'] bgneal@820: date_hierarchy = 'date_submitted' bgneal@820: list_filter = ['date_submitted', 'is_active', 'is_approved'] bgneal@820: readonly_fields = ['lat', 'lon'] bgneal@820: search_fields = ['name', 'location', 'note'] bgneal@820: raw_id_fields = ['user'] bgneal@820: bgneal@820: admin.site.register(BandEntry, BandEntryAdmin)