Mercurial > public > sg101
changeset 413:6144023ebea8
Downloads admin improvements: don't filter by user or IP address. Made the is_public editable on the change list page.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 07 Apr 2011 23:52:18 +0000 (2011-04-07) |
parents | 639cfdf59167 |
children | b1f939b1fb01 |
files | gpp/downloads/admin.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/downloads/admin.py Thu Apr 07 00:59:10 2011 +0000 +++ b/gpp/downloads/admin.py Thu Apr 07 23:52:18 2011 +0000 @@ -57,7 +57,8 @@ exclude = ('html', ) list_display = ('title', 'user', 'category', 'date_added', 'ip_address', 'hits', 'average_score', 'size', 'is_public') - list_filter = ('date_added', 'is_public', 'category', 'user', 'ip_address') + list_filter = ('date_added', 'is_public', 'category') + list_editable = ('is_public', ) date_hierarchy = 'date_added' ordering = ('-date_added', ) search_fields = ('title', 'description', 'user__username')