from django.contrib import admin from models import * from markitup.widgets import MarkItUpWidget # from forms import ArticleForm class PageAdmin(admin.ModelAdmin): formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}} prepopulated_fields = {'slug': ('title',)} # search_fields = ('title', 'synopsis',), # list_display = ('title', 'date',) admin.site.register(Page, PageAdmin)