aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_browse
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_browse
parent3399247f64ab4a184cc6000c3054e0e206fb0172 (diff)
downloadbnewnet-ce96516bd6622a9d0aceae1b044ec2793d32513a.tar.gz
bnewnet-ce96516bd6622a9d0aceae1b044ec2793d32513a.zip
added admin list features
Diffstat (limited to 'bn_django/git_browse')
-rw-r--r--bn_django/git_browse/models.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/bn_django/git_browse/models.py b/bn_django/git_browse/models.py
index b2e62df..7c41ad6 100644
--- a/bn_django/git_browse/models.py
+++ b/bn_django/git_browse/models.py
@@ -31,7 +31,8 @@ class Repository(models.Model):
description = models.TextField("description of repo",blank=True)
class Admin:
- ordering = ['slug']
+ list_display = ['name', 'slug', 'path']
+ ordering = ['name']
def __str__(self):
return self.name
def get_absolute_url(self):
@@ -97,7 +98,9 @@ class Tree(models.Model):
type = 'tree'
class Admin:
+ list_display = ['path','name','repo', 'id']
ordering = ['repo','path']
+ list_filter = ['repo','path']
def __str__(self):
return self.name
@@ -155,6 +158,9 @@ class Blob(models.Model):
type='blob'
class Admin:
+ list_filter = ['repo','path']
+ list_display = ['name','path','id','size','repo']
+ search_fields = ['contents']
ordering = ['repo','path','name']
def __str__(self):
return self.name
@@ -200,6 +206,8 @@ class Commit(models.Model):
type='commit'
class Admin:
+ list_filter = ['repo']
+ list_display = ['id', 'commit_date', 'author', 'repo']
ordering = ['repo','commit_date','author_date','author']
def __str__(self):
return self.id