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

Bug: Versioned custom models fail with AttributeError on missing in_navigation property #425

Closed
fsbraun opened this issue Sep 22, 2024 · 0 comments · Fixed by #423
Closed

Comments

@fsbraun
Copy link
Member

fsbraun commented Sep 22, 2024

Issue

When registering a custom model for versioning and previewing or editing a version of that custom model, the djangocms_versioning.cms_toolbar raises an AttributeError missing the in_navigation attribute of the custom model.

djangocms-versioning provides its own page toolbar which unlike the original page toolbar of django CMS does also assume that the viewed/edited model is of type PageContent which it is not for custom models. This happens if the custom model is apphooked.

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant