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: Simplify versioning interaction for better disentanglement #182

Merged

Conversation

fsbraun
Copy link
Member

@fsbraun fsbraun commented Jul 3, 2023

This PR removes an unnecessary import of djangocms_versioning.helpers.remove_published_where. By importing this helper function, alias implicitly makes a very precise assumption on how versioning works which it should not.

This helper function is replaced by the admin_manager of the content model.

This disentanglement is necessary to allow for alternative versioning packages to work with alias.

@fsbraun fsbraun requested a review from marksweb July 3, 2023 22:34
@marksweb marksweb force-pushed the fix/use-versioning-api-not-helpers branch from 00fba51 to f77d3aa Compare July 4, 2023 17:39
@fsbraun fsbraun merged commit 9961e68 into django-cms:master Jul 4, 2023
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

Successfully merging this pull request may close these issues.

2 participants