Mercurial > public > sg101
comparison gpp/membermap/admin.py @ 266:4532ed27bed8
Fixing #112. Rework member map to untangle user profile and avatar cache from the membermap (since it wasn't really working anyway).
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 25 Sep 2010 18:04:44 +0000 |
parents | dbd703f7d63a |
children |
comparison
equal
deleted
inserted
replaced
265:1ba2c6bf6eb7 | 266:4532ed27bed8 |
---|---|
5 from django.contrib import admin | 5 from django.contrib import admin |
6 | 6 |
7 from membermap.models import MapEntry | 7 from membermap.models import MapEntry |
8 | 8 |
9 class MapEntryAdmin(admin.ModelAdmin): | 9 class MapEntryAdmin(admin.ModelAdmin): |
10 exclude = ('json', ) | 10 exclude = ('html', ) |
11 list_display = ('user', 'location', 'lat', 'lon', 'date_updated') | 11 list_display = ('user', 'location', 'lat', 'lon', 'date_updated') |
12 list_filter = ('date_updated', ) | 12 list_filter = ('date_updated', ) |
13 date_hierarchy = 'date_updated' | 13 date_hierarchy = 'date_updated' |
14 ordering = ('-date_updated', ) | 14 ordering = ('-date_updated', ) |
15 search_fields = ('user', 'location', 'message') | 15 search_fields = ('user', 'location', 'message') |