-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat: Django 4.2, Django CMS 4.1.0rc2 compatibility, and version locking #326
Conversation
Codecov Report
@@ Coverage Diff @@
## master #326 +/- ##
==========================================
+ Coverage 90.55% 90.93% +0.37%
==========================================
Files 69 72 +3
Lines 2329 2536 +207
Branches 314 358 +44
==========================================
+ Hits 2109 2306 +197
- Misses 165 170 +5
- Partials 55 60 +5
|
Just added ruff as linter link just as in #329 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ing into fix/rc2_compat
…ing into fix/rc2_compat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This PR adds tests for Django 4.2 and mixins for django CMS'
GrouperModelAdmin
class (new in 4.2rc2). It includes the version locking functionality. Version locking is activated by settingDJANGOCMS_VERSIONING_LOCK_VERSIONS = True
in the project settings.Documentation has been updated and tests have been added.
To stay DRY and avoid code repetition, the
djangocms_versioning.admin
module has been slightly refactored.ExtendedListDisplayMixin
encapsulates the extension of the change list view of versioned objects using django CMS 4's new config feature. Both versioned grouper admins and versioned content admins inherit it.Djangocms Versioning now supports both versioned grouper model admins and versioned content model admins. The latter are backwards compatible.
Related resources
Checklist
master
Slack to find a “pr review buddy” who is going to review my pull request.