Интегрировал ckeditor в модель django, но при сохранении данных из ckeditor в админ панели django не сохраняется в базу данных, показывает пустоту

enter image description here

Я использую RichText Field from ckeditor.fields import RichTextField

class Section(BaseContent):
image = ImageWithThumbsField(upload_to='static/%Y/%m/%d', sizes=((90,120),(180,240),(360,480)),blank=True,  null=True )
# image = ImageWithThumbsField(upload_to='static/%Y/%m/%d',blank=True,  null=True )
description = RichTextField("Section description. Appears in section home page", blank=True, null=True)
url4SEO = models.SlugField("SEO friendly url, use only aplhabets and hyphen", max_length=60)
summary = models.CharField("Byline/ Summary", max_length=300, blank=True, null=True)
css = models.CharField("Section specific CSS", max_length=300, blank=True, null=True)
allowContent = models.BooleanField("Should this section allow any content(such as News and Event)?", default=True)
parent = models.ForeignKey('self', blank=True, null=True,on_delete=models.DO_NOTHING)
home_disp = models.BooleanField(default = False)
sub_description=RichTextField("Section sub description. Appears in section portfolio page", blank=True, null=True)
sub_image=ImageWithThumbsField(upload_to='static/%Y/%m/%d', sizes=((90,120),(180,240),(360,480)),blank=True,  null=True )
# sub_image=ImageWithThumbsField(upload_to='static/%Y/%m/%d',blank=True,  null=True )
is_active = models.BooleanField()

У меня были старые статические файлы ckeditors и django's admin в папке static моего проекта Я взял обновленные статические файлы из virtual env и сохранил их в папке static, таким образом, все заработало !!!

Вернуться на верх