comparison 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
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 """
2 Admin definitions for the member map application models.
3 """
4
5 from django.contrib import admin
6
7 from membermap.models import MapEntry
8
9 class MapEntryAdmin(admin.ModelAdmin):
10 exclude = ('json', )
11 list_display = ('user', 'location', 'lat', 'lon', 'date_updated')
12 list_filter = ('date_updated', )
13 date_hierarchy = 'date_updated'
14 ordering = ('-date_updated', )
15 search_fields = ('user', 'location', 'message')
16 raw_id_fields = ('user', )
17
18 admin.site.register(MapEntry, MapEntryAdmin)