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

Request: clone DjangoCMS Placeholder content #44

Open
ursomniac opened this issue Oct 4, 2019 · 0 comments
Open

Request: clone DjangoCMS Placeholder content #44

ursomniac opened this issue Oct 4, 2019 · 0 comments

Comments

@ursomniac
Copy link

I'm using django-modelclone on several projects. It's great!

However... :-)

If I apply it to a model using DjangoCMS's Placeholder field, it dutifully clones the model instance with the Placeholder field. However, it creates an empty placeholder. This would be OK, EXCEPT that my stakeholders complain that they have to re-create (most of) the original page's content within the Placeholder field.

What would be ideal is to ALSO recusively clone the plugin instances (or I suppose to optionally do so). DjangoCMS ties plugin instances to the Placeholder field (and some plugins can have child plugins so it's not conveniently straightforward) so (unfortunately) you have to create additional records in those tables if you clone the original page.

(I realize that this is probably out of scope for this package, since not everyone using it also uses DjangoCMS, and frankly, Wagtail does a better job at storing the custom content metadata, but this is the real-world situation I'm in. I suppose I could write my own cloning function, but that would mean mostly re-inventing the wheel just to get the enhanced functionality. But perhaps there's something in the existing package I'm missing.)

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

1 participant