comparison bandmap/admin.py @ 830:b9973588af28

Bandmap: use green & red markers for active/inactive. Other tweaks to admin & added explanatory text.
author Brian Neal <bgneal@gmail.com>
date Sun, 28 Sep 2014 15:23:15 -0500
parents 5103edd3acc4
children 89a3a6433f6f
comparison
equal deleted inserted replaced
829:5a00dcf563a8 830:b9973588af28
12 from bandmap.models import BandEntry 12 from bandmap.models import BandEntry
13 import bio.badges 13 import bio.badges
14 14
15 15
16 class BandEntryAdmin(admin.ModelAdmin): 16 class BandEntryAdmin(admin.ModelAdmin):
17 list_display = ['name', 'date_submitted', 'date_approved', 'is_active', 17 list_display = ['name', 'date_submitted', 'location', 'is_active',
18 'is_approved'] 18 'is_approved']
19 date_hierarchy = 'date_submitted' 19 date_hierarchy = 'date_submitted'
20 list_filter = ['date_submitted', 'is_active', 'is_approved'] 20 list_filter = ['date_submitted', 'is_active', 'is_approved']
21 readonly_fields = ['lat', 'lon'] 21 readonly_fields = ['lat', 'lon']
22 search_fields = ['name', 'location', 'note'] 22 search_fields = ['name', 'location', 'note']