-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Support for wagtail42 #443
Conversation
This remove try/except and VERSION checks
@@ -89,3 +87,5 @@ | |||
# ---------- | |||
# Deprecated | |||
# ---------- | |||
|
|||
ADD_EDITOR_OVERRIDE_STYLES = True |
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.
These styles don't seem to be needed anymore. The wagtail UI deals with them perfectly.
@@ -17,11 +17,6 @@ class MainMenuAdmin(ModelAdmin): | |||
edit_view_class = views.MainMenuEditView | |||
add_to_settings_menu = True | |||
|
|||
def get_form_view_extra_css(self): |
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.
These styles don't seem to be needed anymore. The wagtail UI deals with them perfectly. Also removed the second instance in this file.
Great work @nickmoreton. I hope the maintainers can merge this soon! |
I'll take a look tonight :) |
Codecov Report
@@ Coverage Diff @@
## master #443 +/- ##
==========================================
- Coverage 98.21% 98.12% -0.10%
==========================================
Files 89 89
Lines 3029 2929 -100
==========================================
- Hits 2975 2874 -101
- Misses 54 55 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This updates the sites dependencies so it can be used with Wagtail versions >= 4.1
I have removed the try/except and Wagtail VERSION conditionals and code that supported older versions which I hope you agree does simply the package. I understand that may not be what you prefer and I am happy to revert those changes to keep the older versions around.
I have also adjusted the tox and github actions to help simplify the running of tests.
Issues that could be solved with other updates include:
Some UI elements were misplaced and those are also fixed.
Also the docs could do with been updated I think but I'll wait till you let me know about supporting older versions.