For each row of table A, I want to be able to add one or more rows from table B.
The Django admin has an example, the user permissions picker -- I attach a screen shot.
Each user can have any number of permissions. The permissions start on the left. When you add one, it moves to the right. You can move them back and forth.
That is what I want for two of my own models. How do I get this widget?
I first thought I needed a many to one widget, but on further thought, I think this is many to many. After a user gets a permission, that permission is still available to other users. A user can have several permissions; for a particular permission, the same permission can be given to several users -- must be many to many. My two tables work the same way.
I need the widget on add and update record pages accessible to users; I do not need it on the admin pages. (I was lucky to find a perfect example of what I need on the user admin page.)