From 687734094499d8c8cb11d726ddc838d64abede42 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sun, 24 Feb 2008 15:55:37 +0100 Subject: [PATCH] * Add some filters and search fields to the admin. --- influences/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/influences/models.py b/influences/models.py index 9587aff..8124b85 100644 --- a/influences/models.py +++ b/influences/models.py @@ -18,7 +18,9 @@ class Character(models.Model): return self.name class Admin: - pass + list_filter=('status', 'player') + search_fields=('name') + list_display=('player', 'name', 'status') class Meta: verbose_name = _("Character") @@ -48,7 +50,7 @@ class Influence(models.Model): class Admin: list_filter=('character', 'status', 'longterm') - search_fields=('character', 'description', 'contact') + search_fields=('character', 'summary', 'description', 'contact') list_display=('character', 'contact', 'summary', 'longterm', 'status') class Meta: -- 2.30.2