projects
/
matthijs
/
projects
/
xerxes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
426cb2f
)
* Add some filters and search fields to the admin.
production-master-something
author
Matthijs Kooijman
<matthijs@stdio.flexvps.nl>
Sun, 24 Feb 2008 14:55:37 +0000
(15:55 +0100)
committer
Matthijs Kooijman
<matthijs@stdio.flexvps.nl>
Sun, 24 Feb 2008 14:55:37 +0000
(15:55 +0100)
influences/models.py
patch
|
blob
|
history
diff --git
a/influences/models.py
b/influences/models.py
index 9587aff22f9338f2011b62dff66b702e766873e0..8124b8550246518ae0c92638a0da40b7d8b3b787 100644
(file)
--- 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: