When making forms in Django, the IntegerField comes with a blank choice (a bunch of dashes "------") if called with blank=True and null=True. Is there any way to get ManyToManyField to include such an explicit blank choice?
I've tried subclassing ManyToManyField with no success:
class ManyFieldWithBlank(ManyToManyField):
"""
A Many-to-Many Field with a blank choice
"""
def get_choices_default(self):
return Field.get_choices(self, include_blank=True)