comparison gpp/downloads/admin.py @ 241:27bee3ac85e6

For #93: fix url scheme for downloads.
author Brian Neal <bgneal@gmail.com>
date Wed, 15 Sep 2010 01:01:40 +0000
parents b4305e18d3af
children d424b8bae71d
comparison
equal deleted inserted replaced
240:1246a4f1ab4f 241:27bee3ac85e6
12 from downloads.models import AllowedExtension 12 from downloads.models import AllowedExtension
13 from downloads.models import VoteRecord 13 from downloads.models import VoteRecord
14 14
15 15
16 class CategoryAdmin(admin.ModelAdmin): 16 class CategoryAdmin(admin.ModelAdmin):
17 list_display = ('title', 'description', 'count') 17 list_display = ('title', 'slug', 'description', 'count')
18 prepopulated_fields = {'slug': ('title', )}
18 readonly_fields = ('count', ) 19 readonly_fields = ('count', )
19 20
20 21
21 class PendingDownloadAdmin(admin.ModelAdmin): 22 class PendingDownloadAdmin(admin.ModelAdmin):
22 exclude = ('html', ) 23 exclude = ('html', )