Show related object popup when a selected option is clicked in ManyToMany autocomplete field

91 views
Skip to first unread message

mrts

unread,
Jun 7, 2020, 4:23:42 PM6/7/20
to Django developers (Contributions to Django itself)
Hello!

Currently admin ManyToMany autocomplete fields don't allow editing selections like ForeignKey fields do.
I would like to suggest adding adding editing by showing the related object popup when a selected option is clicked in a ManyToMany autocomplete field.
Alternatively, the unicode pencil icon could be added next to the × icon into the selection chip for editing:

[ ( × 🖉 option 1 ) ( × 🖉 option 2 ) ] + 

I recently had to implement this and a (somewhat incomplete) overview how to do it with django-autocomplete-light is here:

What do you think?

Best regards,
Mart
Reply all
Reply to author
Forward
0 new messages