Django — create a form with multiple select boxes?
I need a page with a form where I can create a location that has a number of characteristics... and, for example, if I choose type of location, then I should be able to choose this location several types
I did something like this:
type_choices = (some choices)
name = models.CharField(max_length=50, verbose_name="Type of location", choices=type_choices)
types = models.ManyToManyField(LocationType, related_name='location_type')
model = Location
but in my form I don't see Cheusov... i.e. the form is blank