3
Hello! I’m developing a Django app. On the project registration page appears a Selectmultiple pro user select the participating teachers. But on the details page I just wanted to appear the names of the teachers who were selected there in the register. I put instead of Selectmultiple the Textinput widget, but instead of appearing the teacher’s name, only the ID appears. I wanted the name to appear. How do I?
Have you tried the
ModelChoiceField? See also that answer in Soen, it shows an example of how to use theSelectwith a list of objects in a model (aSelectMultipleshould work the same, since he inherits fromSelect).– mgibsonbr