-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: X frame options added to page settings form #8041
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: X frame options added to page settings form #8041
Conversation
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.
Hello! Thank you for your contribution! 🎉
As it's your first contribution, be sure to check out the contribution docs.
We invite you to join us on our Discord Server!
Welcome aboard ⛵️!
It would be great to add a simple test that ensures that all page properties moved to the page content model in #6477, actually are present in page settings. IHMO it would be sufficient to check if the moved fields are contained in the Also, I noticed that the django-cms/cms/models/contentmodels.py Lines 131 to 134 in 19ef774
This would be the perfect opportunity to add, say |
Adds a verbose_name attribute to the xframe_options field in PageContent model
Implemented tests to verify attributes moved from the Page model to the PageContent model.
Updated migration file to include verbose_name for the xframe_option
@theShinigami LGTM! Will test drive later today! |
This reverts commit 6712895ff05a5ea25efdc9cf46a1c3056ff6c9b2.
@theShinigami I've done the test run. This looks good. One last (bookkeeping) request from my side: Can you move the test from |
- Tests moved from test_class_properties.py to test_admin.py
* fix: correct typo * feat: add new form options for X-Frame Options * feat: add verbose_name to xframe_options Adds a verbose_name attribute to the xframe_options field in PageContent model * test: add tests for moving attribu 9286 tes from Page to PageContent Implemented tests to verify attributes moved from the Page model to the PageContent model. * fix(migration): add verbose_name to xframe_options field Updated migration file to include verbose_name for the xframe_option * test: update tests for field presence in PageContent and ChangePageForm * refactor: remove unused imports * Revert "refactor: remove unused imports" This reverts commit 6712895ff05a5ea25efdc9cf46a1c3056ff6c9b2. * refactor: remove unused imports * refactor(tests): moved tests - Tests moved from test_class_properties.py to test_admin.py --------- Co-authored-by: Fabian Braun <fsbraun@gmx.de>
Description
fix: display X-Frame Options settings under Page Settings
The X-Frame Options settings are now under Page Settings -> Headers.
fix: comment typo cms/page_rendering.py
minor typo 'middlewear' changed to 'middleware'.
Related resources
Checklist
develop-4