# HG changeset patch # User Brian Neal # Date 1412121942 18000 # Node ID 89a3a6433f6f8710ca964babd3da258eb6d0d30b # Parent 497c720f9d0dc1bc65cc4e9b6bf0a9602cfdfd58 Bandmap admin tweaks: display lat/lon. Admin dashboard link takes you to unapproved entries. diff -r 497c720f9d0d -r 89a3a6433f6f bandmap/admin.py --- a/bandmap/admin.py Sun Sep 28 22:05:09 2014 -0500 +++ b/bandmap/admin.py Tue Sep 30 19:05:42 2014 -0500 @@ -14,8 +14,8 @@ class BandEntryAdmin(admin.ModelAdmin): - list_display = ['name', 'date_submitted', 'location', 'is_active', - 'is_approved'] + list_display = ['name', 'date_submitted', 'location', 'lat', 'lon', + 'is_active', 'is_approved'] date_hierarchy = 'date_submitted' list_filter = ['date_submitted', 'is_active', 'is_approved'] readonly_fields = ['lat', 'lon'] diff -r 497c720f9d0d -r 89a3a6433f6f sg101/templates/core/admin_dashboard.html --- a/sg101/templates/core/admin_dashboard.html Sun Sep 28 22:05:09 2014 -0500 +++ b/sg101/templates/core/admin_dashboard.html Tue Sep 30 19:05:42 2014 -0500 @@ -32,7 +32,7 @@
  • PM's: {{ flagged_msgs }}
  • {% endif %} {% if new_bands %} -
  • Band Map: {{ new_bands }}
  • +
  • Band Map: {{ new_bands }}
  • {% endif %} {% endif %}