aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/photos
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/photos
parent3399247f64ab4a184cc6000c3054e0e206fb0172 (diff)
downloadbnewnet-ce96516bd6622a9d0aceae1b044ec2793d32513a.tar.gz
bnewnet-ce96516bd6622a9d0aceae1b044ec2793d32513a.zip
added admin list features
Diffstat (limited to 'bn_django/photos')
-rw-r--r--bn_django/photos/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bn_django/photos/models.py b/bn_django/photos/models.py
index 33b2e0a..925f91b 100644
--- a/bn_django/photos/models.py
+++ b/bn_django/photos/models.py
@@ -90,7 +90,10 @@ class Photo(models.Model):
get_latest_by = ['date']
class Admin:
- ordering = ['date']
+ list_display = ('title', 'date', 'gallery', 'id')
+ ordering = ['id']
+ list_filter = ['gallery']
+ search_fields = ['title']
def __str__(self):
return self.title