-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: Remove circular import in cms.forms.validators
#8225
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
Conversation
Reviewer's GuideRefactors import logic to eliminate a circular dependency by deferring the Page model import under a TYPE_CHECKING guard and moving the validator import into its usage site. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
👋 Hi there! Please remember to MERGE COMMIT pull requests from Do not SQUASH commits to preserve history for the changelog. |
👋 Hi there! Please remember to MERGE COMMIT pull requests from Do not SQUASH commits to preserve history for the changelog. |
👋 Hi there! Please remember to MERGE COMMIT pull requests from Do not SQUASH commits to preserve history for the changelog. |
* fix: Remove circular import in `cms.forms.validators` (#8225) * Remove circular import * Fix linting * Update cms/forms/validators.py * fix: Do not assume page url cache is filled * fix: Structure board update sometimes failed to add all interactive elements (#8227) * fix: Scan plugin data after structure mode Xhr load * Fix test * fix js linting issues * fix: Empty plugin selectors in all but first placeholder * fix: Show all text-enabled plugins (#8229) * fix: Adjust checks for GrouperAdmin to allow for `prepopulated_fields` * fix: Page settings raised an exception when `USE_I18N = False` * update ruff check * Fix pk reference --------- Co-authored-by: Vinit Kumar <mail@vinitkumar.me>
Description
Removes an import on
cms.forms.validators
that can lead to a circular import.Related resources
Checklist
main