[Django]-Django – ManyToMany as hidden fields?

1👍

You can hide the select in CSS, and let your javascript update the select’s options.

That’s what django-autocomplete-light widget does, and particularly in the case of the “remote autocomplete” which is like your case: js requests a django view that creates an object and responds with its id, and js creates the option with this id.

👤jpic

Leave a comment