GSoC 2022: Create and select related content #8157
Replies: 2 comments 5 replies
-
I have a few concerns.
Copy/Pasted from later in slack discussion: I think we might be talking slightly at cross purposes, sorry! I agree in many cases, ModelAdmin has better features (it's also missing some - translation, for example, as I recall). I'd very much like to see snippets and modeladmin combined into one feature that has all the features from both. If we choose to build upon ModelAdmin, we need to get rid of some of the clunky code that comes from trying to reuse internal bits of Django's ModelAdmin in ways it wasn't intended, and ideally IMO make its code have more in common with editing page models - for example, my suggestion of migrating its filters to use django-filter instead, as the rest of the admin does. If we choose to build upon snippets, we need to add those missing features. My concern is that we continue to have two separate, diverging implementations of basically the same concept, each supporting slightly different features - it's confusing both for implementors and Wagtail developers. |
Beta Was this translation helpful? Give feedback.
-
Just a note for people looking this that we’ve decided to cancel this project, because it’s tied to too many other bits of work. |
Beta Was this translation helpful? Give feedback.
-
CANCELED, #8157 (comment)
Discussion about Create and select related content a Google Summer of Code project.
Django
Django has a way to select related content AND create, update and delete related content without leaving the current form. It does this by opening new windows.
See this video illustrating the differences between Django and Wagtail related objects.
A select field in Django has a create (plus), edit (pencil) and delete (red cross). It opens a new window that allows performing CRUD actions.
Also, Django raw id field has a search loop. It opens a chooser in a new window. It re-uses the model admin list view. Advantages are:
Wagtail
Creating related content in Wagtail involves tedious and annoying steps:
You need to navigate away from the current form (losing your work).
The current Wagtail snippet chooser opens a modal. The modal:
Wagtail has no raw_id_fields.
Expected outcomes
This GSOC project is about related object selection and CRUD in Wagtail:
Beta Was this translation helpful? Give feedback.
All reactions