From e81645e63dc02252cf9cd1fb9c270fc15b61bc72 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 24 Jan 2008 12:54:00 +0100 Subject: [PATCH] * Add "Under discussion" status for influences. * Add a filter and search bar in the admin for influences. --- influences/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/influences/models.py b/influences/models.py index 7c923cc..ffc1f66 100644 --- a/influences/models.py +++ b/influences/models.py @@ -22,6 +22,7 @@ class Character(models.Model): class Influence(models.Model): STATUS_CHOICES = ( ('N', 'New'), + ('U', 'Under discussion'), ('P', 'Processing'), ('D', 'Done'), ) @@ -38,7 +39,8 @@ class Influence(models.Model): return self.description[0:10] class Admin: - pass + list_filter=('character', 'status', 'longterm') + search_fields=('character', 'description', 'contact') class Meta: verbose_name = _("Influence") -- 2.30.2