From: Matthijs Kooijman Date: Sun, 24 Feb 2008 14:55:37 +0000 (+0100) Subject: * Add some filters and search fields to the admin. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=687734094499d8c8cb11d726ddc838d64abede42;p=matthijs%2Fprojects%2Fxerxes.git * Add some filters and search fields to the admin. --- 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: