annotate membermap/admin.py @ 582:392fd36360c6
Added a requirements_dev.txt file since with Python 2.7 we no longer
need the importlib.
author |
Brian Neal <bgneal@gmail.com> |
date |
Sat, 05 May 2012 17:28:29 -0500 |
parents |
ee87ea74d46b |
children |
|
rev |
line source |
gremmie@1
|
1 """
|
gremmie@1
|
2 Admin definitions for the member map application models.
|
gremmie@1
|
3 """
|
gremmie@1
|
4
|
gremmie@1
|
5 from django.contrib import admin
|
gremmie@1
|
6
|
gremmie@1
|
7 from membermap.models import MapEntry
|
gremmie@1
|
8
|
gremmie@1
|
9 class MapEntryAdmin(admin.ModelAdmin):
|
bgneal@266
|
10 exclude = ('html', )
|
gremmie@1
|
11 list_display = ('user', 'location', 'lat', 'lon', 'date_updated')
|
gremmie@1
|
12 list_filter = ('date_updated', )
|
gremmie@1
|
13 date_hierarchy = 'date_updated'
|
gremmie@1
|
14 ordering = ('-date_updated', )
|
gremmie@1
|
15 search_fields = ('user', 'location', 'message')
|
gremmie@1
|
16 raw_id_fields = ('user', )
|
gremmie@1
|
17
|
gremmie@1
|
18 admin.site.register(MapEntry, MapEntryAdmin)
|