#10964: Admin for group doesn't allow to easily add users to the group -------------------------------+------------------------------------ Reporter: gruszczy | Owner: nobody Type: New feature | Status: new Component: contrib.auth | Version: master Severity: Normal | Resolution: Keywords: admin, groups | Triage Stage: Accepted Has patch: 1 | Needs documentation: 1 Needs tests: 1 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 1 -------------------------------+------------------------------------
Comment (by koenb): I worked on this again. Progress is here: https://github.com/planop/django/tree/ticket_10964 This is working: - in a modelform: in the fields list, use the descriptors for reverse M2M or FK, like 'book_set'. This will add a select multiple to the form. - in the admin: the same + add the descriptor name to filter_horizontal and filter_vertical to have the fancy select widget versions - applied this to the auth admin for the Group model so you can select users in the group creation and edit views('user_set' in fields and filter_horizontal) There are a few tests and a beginning of documentation. I am not entirely happy with the way the descriptors are detected, but I know of no better way at the moment. Not sure this should go in to the auth admin by default either. -- Ticket URL: <https://code.djangoproject.com/ticket/10964#comment:12> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.5588be4b225535b88f9307096dd37e84%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.