How to create control like django admin manytomanyfield FILTER_VERTICAL

Hello i want to create multiplechoicefield control just like django admin manytomanyfield filter_vertical. Where chosen items can be moved between two multiplechoicefields. I m new to django. Plz guide me to create this control outside django admin

I think you are asking to implement something like this

This is custom javascript and html code written in django, if you also want the same to be integrated in your templates you have to integrate it with JS and two multi-select drop downs one for listing available options and other one to show chosen one. Then there are buttons like left arrow, right arrow, choose all and remove all which have there own logic written in JS.
There might be some packages or templates available but unfortunately I don’t have knowledge about them.