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

fix: Copy page did not create versions for subpages #7493

Merged
merged 7 commits into from
Jan 31, 2023

Conversation

fsbraun
Copy link
Sponsor Member

@fsbraun fsbraun commented Jan 31, 2023

Description

This is an urgent fix when copying pages:

  • Children of the page copied did not have Version objects automatically created if djangocms-versioning is installed.
    Installations can be fixed by running ./manage.py create_versions --username <some_username>
  • Also, the ./manage.py cms copy command now requires either a user id or a user name to create new page content models. They can be specified using the command line parameters --username xy or --userid 23.
  • Finally, the "Duplicate page" now creates the correct Version objects automatically.

Related resources

  • #...
  • #...

Checklist

  • I have opened this pull request against develop
  • I have added or modified the tests when changing logic
  • I have followed the conventional commits guidelines to add meaningful information into the changelog
  • I have read the contribution guidelines and I have joined #workgroup-pr-review on Slack to find a “pr review buddy” who is going to review my pull request.

@fsbraun fsbraun requested a review from marksweb January 31, 2023 11:22
@fsbraun fsbraun added the 4.1 label Jan 31, 2023
cms/models/pagemodel.py Outdated Show resolved Hide resolved
@fsbraun fsbraun merged commit 7bb471c into django-cms:develop-4 Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants