Mercurial > public > sg101
changeset 834:89a3a6433f6f
Bandmap admin tweaks: display lat/lon.
Admin dashboard link takes you to unapproved entries.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 30 Sep 2014 19:05:42 -0500 |
parents | 497c720f9d0d |
children | 5ef1a73d2a45 |
files | bandmap/admin.py sg101/templates/core/admin_dashboard.html |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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']
--- 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 @@ <li><a href="/admin/messages/flag/">PM's</a>: {{ flagged_msgs }}</li> {% endif %} {% if new_bands %} -<li><a href="/admin/bandmap/bandentry/">Band Map</a>: {{ new_bands }}</li> +<li><a href="/admin/bandmap/bandentry/?is_approved__exact=0">Band Map</a>: {{ new_bands }}</li> {% endif %} </ul> {% endif %}