gremmie@1: """ gremmie@1: Admin definitions for the member map application models. gremmie@1: """ gremmie@1: gremmie@1: from django.contrib import admin gremmie@1: gremmie@1: from membermap.models import MapEntry gremmie@1: gremmie@1: class MapEntryAdmin(admin.ModelAdmin): gremmie@1: exclude = ('json', ) gremmie@1: list_display = ('user', 'location', 'lat', 'lon', 'date_updated') gremmie@1: list_filter = ('date_updated', ) gremmie@1: date_hierarchy = 'date_updated' gremmie@1: ordering = ('-date_updated', ) gremmie@1: search_fields = ('user', 'location', 'message') gremmie@1: raw_id_fields = ('user', ) gremmie@1: gremmie@1: admin.site.register(MapEntry, MapEntryAdmin)