comparison bandmap/admin.py @ 843:09ed84a7394c

For issue #76, store pre-rendered HTML for each band map entry.
author Brian Neal <bgneal@gmail.com>
date Mon, 13 Oct 2014 16:48:43 -0500
parents f31168465953
children 4aadaf3bc234
comparison
equal deleted inserted replaced
842:b8c401cf99ca 843:09ed84a7394c
20 list_filter = ['date_submitted', 'is_active', 'is_approved'] 20 list_filter = ['date_submitted', 'is_active', 'is_approved']
21 list_editable = ['lat', 'lon'] 21 list_editable = ['lat', 'lon']
22 search_fields = ['name', 'location', 'note'] 22 search_fields = ['name', 'location', 'note']
23 raw_id_fields = ['user'] 23 raw_id_fields = ['user']
24 actions = ['update_location', 'approve_bands'] 24 actions = ['update_location', 'approve_bands']
25 readonly_fields = ['html']
25 26
26 def approve_bands(self, request, qs): 27 def approve_bands(self, request, qs):
27 """This admin action awards a map pin to the user who added the band. 28 """This admin action awards a map pin to the user who added the band.
28 The band is then published and will be available for display on the map. 29 The band is then published and will be available for display on the map.
29 30