My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.contrib import admin
from basic.blog.models import *


class CategoryAdmin(admin.ModelAdmin):
prepopulated_fields = {'slug': ('title',)}

admin.site.register(Category, CategoryAdmin)


class PostAdmin(admin.ModelAdmin):
list_display = ('title', 'publish', 'status')
list_filter = ('publish', 'categories', 'status')
search_fields = ('title', 'body')
prepopulated_fields = {'slug': ('title',)}

admin.site.register(Post, PostAdmin)
Show details Hide details

Change log

r54 by nat...@playgroundblues.com on Jul 18, 2008   Diff
Updating all apps to work with newforms
admin branch merge
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 465 bytes, 17 lines
Hosted by Google Code