it/itf/pages/admin.py

13 lines
289 B
Python
Raw Normal View History

2011-12-27 13:05:42 +00:00
from django.contrib import admin
from models import *
# from forms import ArticleForm
class PageAdmin(admin.ModelAdmin):
prepopulated_fields = {'slug': ('title',)}
# search_fields = ('title', 'synopsis',),
# list_display = ('title', 'date',)
admin.site.register(Page, PageAdmin)