-
-
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
Migrate to wagtail.snippets or wagtail-modeladmin #459
Comments
We will likely transition to snippets as it's more aligned to the overall Wagtail 6 architecture. wagtail-modeladmin feels more like a maintenance package and may not be updated in the future. |
I'm working on it : https://github.com/frague59/wagtailmenus |
Is it perhaps worth a quick fix to make use of the decoupled This will at least remove the annoying deprecation messages while the more substantial changes are made to use snippets. I'm happy to do this, and to assist (maybe with testing if you are making progress @frague59) with the snippet version. |
Hi, are you still on it? Do you need any help? |
... I'm on another project right now, I'm missed up in the templates used by the admin - I assume I'm a bit lazy on investigating on it. And I've used the wagtail-modeladmin external package for my project. I've not gone so far ! |
I feel this migration won't be an easy change for a single person. Wagtailmenus is very coupled with wagtail-modeladmin and its base views. A few wheels will have to be reinvented for snippets. Maybe we could split the problem into smaller issues and create a milestone for it. |
Now that I have some other projects out of the way, I’m going to dive into this to remove dependence on wagtail_modeladmin and move to snippets and SnippetViewSet, etc. My aim is to target Wagtail 5.2 LTS and later, as both 4.1 LTS and 5.1 drop from support in a couple of months. If it looks like the problem can or should be split up, as commented by @MrCordeiro, I’ll report back with suggestions on how this can be done. I have migrated a couple of other models and the viewsets in other projects, and it wasn’t too painful. Some thought may be required on how to manage the transition for downstream users, for instance, incorporate these changes into a new v4.0. We may also need to setup some deprecations. |
I'm making good progress with extracting modeladmin from wagtailmenus. I'm not seeing an obvious way to split up the work at the moment, other than splitting off updates to the documentation. There are, however, a few design decisions, one of which is whether or not to retain the existing behaviour when viewing and editing the site main menus. The The question is, do we want to retain this behaviour, or alternatively, expose the My feeling is the latter is more consistent with other End-user views are of course welcome. |
As an end user, I prefer the 2nd option. I feel it's more explicit. |
Despite my comment above, I am presently pursuing the first option. Two reasons:
I'm just working through the template issues, trying to minimise or eliminate duplication of Wagtail templates that might create an ongoing maintenance burden. I'm also waiting on exactly what happens in wagtail/wagtail#11270 to make sure the FlatMenu copy is consistent - I'll have to backport some code to support Wagtail 5.2 LTS, but hopefully that can be bypassed in Wagtail 6, making for a fairly short deprecation cycle (once 5.2 LTS drops from support). |
This workaround might just do that: import sys
import wagtail_modeladmin
sys.modules["wagtail.contrib.modeladmin"] = wagtail_modeladmin Place this in an file that's loaded early (either the settings, or some |
I installed the third party library wagtail_modeladmin. The main menu is working well, but i cant edit flat menus in cms. Is there anyone with the same problem? |
@vdboor, release 3.1.9 provides a transition to I have also prepared a PR to completely remove dependence on wagtail_modeladmin in Wagtail 5.2 LTS and 6.0. See #472. It is undergoing final testing and only needs a few documentation updates before it is ready. |
Seeing as how wagtail.contrib.modeladmin is going away in Wagtail 6.0, are there plans to update this package to support either wagtail.snippets or move to wagtail-modeladmin? Would be interested to know the roadmap here.
The text was updated successfully, but these errors were encountered: