Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot delete fluentpage in admin #57

Closed
RealBigB opened this issue Mar 10, 2015 · 3 comments
Closed

Cannot delete fluentpage in admin #57

RealBigB opened this issue Mar 10, 2015 · 3 comments

Comments

@RealBigB
Copy link

Error message:

IntegrityError at /admin/fluent_pages/page/2/delete/
(1451, 'Cannot delete or update a parent row: a foreign key constraint fails 
(`cms17`.`fluent_contents_contentitem`, CONSTRAINT `ee8c2fd087492bad9ff5ef018852dc50`
FOREIGN KEY (`placeholder_id`) REFERENCES `fluent_contents_placeholder` (`id`))')

Versions:

Django==1.7.6
MySQL-python==1.2.5
git+https://github.com/edoburu/django-fluent-contents.git@dfe7f762cb4c7203d87c111bc292509bc305fdce
git+https://github.com/edoburu/django-fluent-pages.git@98159bd07226fbec4c3e9683177add7005d3bed8

FWIW in the admin the placeholder is indeed listed after the contentitem:

Page: Du
URL Node: /yadda/du/
URL Node translation: Français: Du
Contentitem link: 'Texte 3' in 'Français Main'
Texte: lalala
Placeholder: Main
Placeholder: Sidebar
@RealBigB
Copy link
Author

Ok, known bug in fluent-contents, cf django-fluent/django-fluent-contents#19

@RealBigB
Copy link
Author

FWIW: solved the issue by creating my own fluentpage type based on fluent_pages.integration.fluent_contents.FluentContentsPage but I had to manually set meta.db_table to meet fluent-pages expectations.

@vdboor
Copy link
Contributor

vdboor commented Apr 14, 2015

This should be fixed in v1.0, which just appeared on pypi

@vdboor vdboor closed this as completed Apr 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants