  <label><input type="radio" name="beatle" value="P" /> Paul</label><br />
  <label><input checked="checked" type="radio" name="beatle" value="G" /> George</label><br />
  <label><input type="radio" name="beatle" value="R" /> Ringo</label>
  
  A RadioFieldRenderer object also allows index access to individual RadioInput
  objects.
  >>> w = RadioSelect()
  >>> r = w.get_renderer('beatle', 'J', choices=(('J', 'John'), ('P', 'Paul'), ('G', 'George'), ('R', 'Ringo')))
  >>> print r[1]
  <label><input type="radio" name="beatle" value="P" /> Paul</label>
 
</s> remove         self.renderer = kwargs.pop('renderer', None)
        if not self.renderer:
            self.renderer = RadioFieldRenderer
 </s> add         # Override the default renderer if we were passed one.
        renderer = kwargs.pop('renderer', None)
        if renderer:
            self.renderer = renderer
Or you can use custom RadioSelect fields that use your custom renderer.
>>> class CustomRadioSelect(RadioSelect):
...    renderer = MyRenderer
>>> w = CustomRadioSelect()
>>> print w.render('beatle', 'G', choices=(('J', 'John'), ('P', 'Paul'), ('G', 'George'), ('R', 'Ringo')))
<label><input type="radio" name="beatle" value="J" /> John</label><br />
<label><input type="radio" name="beatle" value="P" /> Paul</label><br />
<label><input checked="checked" type="radio" name="beatle" value="G" /> George</label><br />
<label><input type="radio" name="beatle" value="R" /> Ringo</label>

  <label><input type="radio" name="beatle" value="P" /> Paul</label><br />
  <label><input checked="checked" type="radio" name="beatle" value="G" /> George</label><br />
  <label><input type="radio" name="beatle" value="R" /> Ringo</label>
  
Or you can use custom RadioSelect fields that use your custom renderer.
>>> class CustomRadioSelect(RadioSelect):
...    renderer = MyRenderer
>>> w = CustomRadioSelect()
>>> print w.render('beatle', 'G', choices=(('J', 'John'), ('P', 'Paul'), ('G', 'George'), ('R', 'Ringo')))
<label><input type="radio" name="beatle" value="J" /> John</label><br />
<label><input type="radio" name="beatle" value="P" /> Paul</label><br />
<label><input checked="checked" type="radio" name="beatle" value="G" /> George</label><br />
<label><input type="radio" name="beatle" value="R" /> Ringo</label>

  A RadioFieldRenderer object also allows index access to individual RadioInput
  objects.
  >>> w = RadioSelect()
  >>> r = w.get_renderer('beatle', 'J', choices=(('J', 'John'), ('P', 'Paul'), ('G', 'George'), ('R', 'Ringo')))
  >>> print r[1]
  <label><input type="radio" name="beatle" value="P" /> Paul</label>
keep keep keep add keep keep keep keep keep keep
 Fixed #5993 -- Made `RadioSelect` easier to subclass by giving it a default `renderer` as a class attribute.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6717 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/regressiontests/forms/widgets.py