-
Notifications
You must be signed in to change notification settings - Fork 23
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
Feature/multi select moderation in Django admin #240
base: support/django-cms-4.0.x
Are you sure you want to change the base?
Feature/multi select moderation in Django admin #240
Conversation
admin alias content
…rang95/djangocms-alias into feature/multi-select-moderation-in-admin
for more information, see https://pre-commit.ci
@vipulnarang95 Shouldn't this go into moderation, which - I would assume - would add the action to any moderated model? |
@fsbraun but this implements into the model admin. How do you think we can implement this in moderation? |
It could patch all registered model admins for models registered with moderation. This probably happens in Moderation uses monkey patching quite extensively. Since |
Okay, I can look into it definitely and also I would like to add this is implemented in a similar way for pages in Pageadmin |
The good thing is, it would work for all future moderated models immediately. For pages, the challenge might be that currently there are no bulk actions to, say, delete multiple pages. |
Can you brief or give some more details on this how can this be implemented in moderation? |
@vipulnarang95 I'd go into https://github.com/django-cms/djangocms-moderation/blob/master/djangocms_moderation/cms_config.py and add a You'll have to import the admin site, call The simplest way to add the action might be to just add it to
Obviously, this is all untested.... and will require some tests |
@fsbraun I got this working. but can you brief on how to make it conditional? And then in cms_config for djangocms_moderation add: This would require a config in each app. Does it makes sense? or directly enable it by default? |
@vipulnarang95 Out of usability consistency, I'd have it either everywhere or nowhere. So, if conditional, then for all of djangocms-moderation. I have no clear opinion if you need to have it conditional. Is there a reason, why you want to switch the action off? |
@fsbraun I also think it should be everywhere. But you mentioned above that call handle_admin_action conditionally. That's why I was asking. |
Description
Added feature of multi select and add to moderation workflow for Alias content admin
Checklist