* Add some filters and search fields to the admin. production-master-something
authorMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Sun, 24 Feb 2008 14:55:37 +0000 (15:55 +0100)
committerMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Sun, 24 Feb 2008 14:55:37 +0000 (15:55 +0100)
influences/models.py

index 9587aff22f9338f2011b62dff66b702e766873e0..8124b8550246518ae0c92638a0da40b7d8b3b787 100644 (file)
@@ -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: