Mercurial > public > sg101
diff gpp/membermap/admin.py @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | 4532ed27bed8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/membermap/admin.py Mon Apr 06 02:43:12 2009 +0000 @@ -0,0 +1,18 @@ +""" +Admin definitions for the member map application models. +""" + +from django.contrib import admin + +from membermap.models import MapEntry + +class MapEntryAdmin(admin.ModelAdmin): + exclude = ('json', ) + list_display = ('user', 'location', 'lat', 'lon', 'date_updated') + list_filter = ('date_updated', ) + date_hierarchy = 'date_updated' + ordering = ('-date_updated', ) + search_fields = ('user', 'location', 'message') + raw_id_fields = ('user', ) + +admin.site.register(MapEntry, MapEntryAdmin)