I'm generating forms from models like so:

class Role(models.Model):
    assignedcompanies = models.ManyToManyField(Company, blank=True)

class RoleForm(ModelForm):
    class Meta:
        model = Role

Whenever I print that form in a template, it displays nicely and it's mostly 
OK.  However, the list of Company objects renders as a MultipleChoiceField, 
and there's no way that I've found to clear the list of selected values.  
Is there a way to get a "None of the above" option or a "Clear" button to 
get rid of unwanted or accidentally selected options?
-- 
Kirk Strauser

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to