# HG changeset patch # User Brian Neal # Date 1239496448 0 # Node ID d6f3c38e8f50010ef9051ce41b40861b91a7b693 # Parent ca66189c7c4484d992c167be8185059226a5eeba Removed markitUp! from the downloads admin. It was looking weird. Try it without it. diff -r ca66189c7c44 -r d6f3c38e8f50 gpp/downloads/admin.py --- a/gpp/downloads/admin.py Sun Apr 12 00:31:36 2009 +0000 +++ b/gpp/downloads/admin.py Sun Apr 12 00:34:08 2009 +0000 @@ -10,32 +10,26 @@ from downloads.models import VoteRecord class DownloadAdmin(admin.ModelAdmin): - 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') - date_hierarchy = 'date_added' - ordering = ('-date_added', ) - search_fields = ('title', 'description', 'user__username') - raw_id_fields = ('user', ) - save_on_top = True - - class Media: - css = { - 'all': settings.GPP_THIRD_PARTY_CSS['markitup'], - } - js = settings.GPP_THIRD_PARTY_JS['jquery'] + \ - settings.GPP_THIRD_PARTY_JS['markitup'] + \ - ('js/downloads_admin.js', ) + 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') + date_hierarchy = 'date_added' + ordering = ('-date_added', ) + search_fields = ('title', 'description', 'user__username') + raw_id_fields = ('user', ) + save_on_top = True class VoteRecordAdmin(admin.ModelAdmin): - list_display = ('user', 'download', 'vote_date') - list_filter = ('user', 'download') - date_hierarchy = 'vote_date' + list_display = ('user', 'download', 'vote_date') + list_filter = ('user', 'download') + date_hierarchy = 'vote_date' admin.site.register(Download, DownloadAdmin) admin.site.register(Category) admin.site.register(AllowedExtension) admin.site.register(VoteRecord, VoteRecordAdmin) + +# vim: ts=4 sw=4