biblio remove ckeditor

This commit is contained in:
Sanj 2011-12-14 02:19:15 +05:30
parent 80a7eb68fc
commit 1f49a7d8cb
2 changed files with 2 additions and 1 deletions

View File

@ -84,6 +84,7 @@ class VideoAdmin(admin.ModelAdmin):
class DocumentAdmin(admin.ModelAdmin): class DocumentAdmin(admin.ModelAdmin):
list_display = ('__unicode__', 'subject',) list_display = ('__unicode__', 'subject',)
list_editable = ('subject',) list_editable = ('subject',)
formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}}
admin.site.register(Comment, CommentAdmin) admin.site.register(Comment, CommentAdmin)
admin.site.register(Meeting, MeetingAdmin) admin.site.register(Meeting, MeetingAdmin)

View File

@ -195,7 +195,7 @@ class DocumentSubject(ItfModel):
class Document(ItfModel): class Document(ItfModel):
title = models.CharField(max_length=255) 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) file = models.FileField(upload_to='upload/docs', blank=True, null=True)
meeting = models.ForeignKey('Meeting', blank=True, null=True) meeting = models.ForeignKey('Meeting', blank=True, null=True)
talk = models.ForeignKey('Talk', blank=True, null=True) talk = models.ForeignKey('Talk', blank=True, null=True)