Mercurial > public > sg101
comparison gpp/weblinks/admin.py @ 242:7e8d2dda99e3
For #93: fix url scheme for weblinks.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 15 Sep 2010 03:24:01 +0000 |
parents | b4305e18d3af |
children | d424b8bae71d |
comparison
equal
deleted
inserted
replaced
241:27bee3ac85e6 | 242:7e8d2dda99e3 |
---|---|
7 from weblinks.models import Link | 7 from weblinks.models import Link |
8 from weblinks.models import FlaggedLink | 8 from weblinks.models import FlaggedLink |
9 | 9 |
10 | 10 |
11 class CategoryAdmin(admin.ModelAdmin): | 11 class CategoryAdmin(admin.ModelAdmin): |
12 list_display = ('title', 'description', 'count') | 12 list_display = ('title', 'slug', 'description', 'count') |
13 prepopulated_fields = {'slug': ('title', )} | |
13 readonly_fields = ('count', ) | 14 readonly_fields = ('count', ) |
14 | 15 |
15 | 16 |
16 class PendingLinkAdmin(admin.ModelAdmin): | 17 class PendingLinkAdmin(admin.ModelAdmin): |
17 list_display = ('title', 'url', 'user', 'category', 'date_added') | 18 list_display = ('title', 'url', 'user', 'category', 'date_added') |