django - IntegrityError when try to insert image to text -
i'm trying insert picture in django-cms wysiwyg editor, but:
integrityerror @ /admin/cms/page/3/edit-plugin/3/edit-plugin/15/ (1452, 'cannot add or update child row: foreign key constraint fails (`my-table`.`cmsplugin_filerimage`, constraint `cmsplugin_ptr_id_refs_id_c078c386` foreign key (`cmsplugin_ptr_id`) references `cms_cmsplugin` (`id`))') the same thing happens when try use django-cms own picture plugin.
as can see there no way mark comment answer i'll thank victor comment. in case type of cmsplugin_filer tables innodb while other tables' engine myisam. changed type of engine filer's tables myisam:
alter table <tablename> engine=myisam
Comments
Post a Comment