comparison membermap/admin.py @ 581:ee87ea74d46b

For Django 1.4, rearranged project structure for new manage.py.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 May 2012 17:10:48 -0500
parents gpp/membermap/admin.py@4532ed27bed8
children
comparison
equal deleted inserted replaced
580:c525f3e0b5d0 581:ee87ea74d46b
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 = ('html', )
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)