Ticket #8422: patch.diff

File patch.diff, 518 bytes (added by tosh, 7 years ago)
  • django/forms/fields.py

     
    780780            widget=widget, label=label, initial=initial, help_text=help_text,
    781781            *args, **kwargs)
    782782        self.choices = []
     783        if not required:
     784            self.choices.append(('',''))
    783785        if self.match is not None:
    784786            self.match_re = re.compile(self.match)
    785787        if recursive:
Back to Top