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:
c508d43
)
* Add "Under discussion" status for influences.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 24 Jan 2008 11:54:00 +0000
(12:54 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 24 Jan 2008 11:54:00 +0000
(12:54 +0100)
* Add a filter and search bar in the admin for influences.
influences/models.py
patch
|
blob
|
history
diff --git
a/influences/models.py
b/influences/models.py
index 7c923cc45b85ba398b17142932321b4486573309..ffc1f66ff2ec2f5a4dc65f30e9c4e9984441bf50 100644
(file)
--- 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")