aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_wiki
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-09-13 18:47:22 -0400
committerbnewbold <bnewbold@manus.(none)>2007-09-13 18:47:22 -0400
commitce96516bd6622a9d0aceae1b044ec2793d32513a (patch)
tree878f06e404d56df849fff872d71e5258bc289bb6 /bn_django/git_wiki
parent3399247f64ab4a184cc6000c3054e0e206fb0172 (diff)
downloadbnewnet-ce96516bd6622a9d0aceae1b044ec2793d32513a.tar.gz
bnewnet-ce96516bd6622a9d0aceae1b044ec2793d32513a.zip
added admin list features
Diffstat (limited to 'bn_django/git_wiki')
-rw-r--r--bn_django/git_wiki/models.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bn_django/git_wiki/models.py b/bn_django/git_wiki/models.py
index 83a275b..ba0f5c9 100644
--- a/bn_django/git_wiki/models.py
+++ b/bn_django/git_wiki/models.py
@@ -20,6 +20,7 @@ class Tree(models.Model):
return ''.join(self.path.replace('"','').replace("'","").strip().lower().split())
class Admin:
+ list_display = ['name', 'id', 'mode']
ordering = ['path','name']
def __str__(self):
@@ -75,7 +76,9 @@ class Item(models.Model):
return ''.join(self.name.replace('"','').replace("'","").strip().lower().split())
class Admin:
- ordering = ['path','name']
+ list_display = ['name', 'id', 'size']
+ search_fields = ['contents']
+ ordering = ['name']
def __str__(self):
return self.name
def get_absolute_url(self):
@@ -125,6 +128,7 @@ class Commit(models.Model):
class Admin:
ordering = ['commit_date','author_date','author']
+ list_display = ['id', 'commit_date', 'author']
def __str__(self):
return self.id
def get_absolute_url(self):