Ticket #5993: radioselect.patch

File radioselect.patch, 649 bytes (added by Max Derkachev <mderk@…>, 17 years ago)
  • django/newforms/widgets.py

     
    317317                % force_unicode(w) for w in self]))
    318318
    319319class RadioSelect(Select):
    320 
     320    renderer = RadioFieldRenderer
    321321    def __init__(self, *args, **kwargs):
    322         self.renderer = kwargs.pop('renderer', None)
     322        self.renderer = kwargs.pop('renderer', self.renderer)
    323323        if not self.renderer:
    324324            self.renderer = RadioFieldRenderer
    325325        super(RadioSelect, self).__init__(*args, **kwargs)
Back to Top