From 513a2a8c07490a4aeb2c302fae0adcfe2b9c3e4a Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 27 Dec 2011 18:39:11 +0530 Subject: [PATCH] admin for pages --- itf/pages/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/itf/pages/admin.py b/itf/pages/admin.py index afe5f49..c96c498 100755 --- a/itf/pages/admin.py +++ b/itf/pages/admin.py @@ -1,9 +1,12 @@ 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',)