From 1f49a7d8cba4a8c1dd36578fbd7e2c6a147dafac Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 14 Dec 2011 02:19:15 +0530 Subject: [PATCH] biblio remove ckeditor --- itf/festival/admin.py | 1 + itf/festival/models.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/itf/festival/admin.py b/itf/festival/admin.py index 2e05199..eb05573 100755 --- a/itf/festival/admin.py +++ b/itf/festival/admin.py @@ -84,6 +84,7 @@ class VideoAdmin(admin.ModelAdmin): class DocumentAdmin(admin.ModelAdmin): list_display = ('__unicode__', 'subject',) list_editable = ('subject',) + formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}} admin.site.register(Comment, CommentAdmin) admin.site.register(Meeting, MeetingAdmin) diff --git a/itf/festival/models.py b/itf/festival/models.py index 8f9df81..2c6fb59 100755 --- a/itf/festival/models.py +++ b/itf/festival/models.py @@ -195,7 +195,7 @@ class DocumentSubject(ItfModel): class Document(ItfModel): title = models.CharField(max_length=255) - intro = RichTextField(blank=True, null=True) + intro = TextField(blank=True, null=True) file = models.FileField(upload_to='upload/docs', blank=True, null=True) meeting = models.ForeignKey('Meeting', blank=True, null=True) talk = models.ForeignKey('Talk', blank=True, null=True)