-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Fixed #36629 -- Added missing “Choose all” and “Remove all” buttons in admin m2m filter_vertical widget. #20396
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
base: main
Are you sure you want to change the base?
Conversation
|
Should I add |
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 patch review checklist.
If you're fixing a ticket from Trac make sure to set the "Has patch" flag and include a link to this PR in the ticket!
If you have any design or process questions then you can ask in the Django forum.
Welcome aboard ⛵️!
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.
Thanks for your work on this @nileshpahari
I’ve left a small comment :)
Also, once the work is complete, please remember to turn off the "patch needs improvement", "needs tests", and "needs documentation: flags on the ticket.
This document may be helpful.
| remove_all_button = "#id_%s_remove_all" % field_name | ||
| self.assertEqual(self.is_disabled(choose_button), choose_btn_disabled) | ||
| self.assertEqual(self.is_disabled(remove_button), remove_btn_disabled) | ||
| if mode == "horizontal": |
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.
It looks like mode is no longer used.
Would it be okay to remove the mode parameter?
…in m2m widget filter_vertical. Co-authored-by: Md. Miftahul Kabir <miftahul1999530@gmail.com>
…move all buttons Co-authored-by: Md. Miftahul Kabir <miftahul1999530@gmail.com>
4e95027 to
2f09b21
Compare
|
@Antoliny0919 thanks for the review. I've removed the |
📊 Coverage Report for Changed FilesNote: Missing lines are warnings only. Some lines may not be covered by SQLite tests as they are database-specific. For more information about code coverage on pull requests, see the contributing documentation. |
Fix missing “Choose all” and “Remove all” buttons in admin m2m
filter_verticalwidget.Trac ticket number
ticket-36629
Branch description
The “Choose all” and “Remove all” buttons were not visible in the Django admin ManyToMany
filter_verticalwidget. This was fixed by updating the CSS to ensure the buttons are displayed.Screenshots
Checklist
mainbranch.