'Render only selected tags.
Remove when Django < 1.10 support is dropped.'

def render_options(self, *args):

    selected_choices_arg = (1 if (VERSION < (1, 10)) else 0)
    selected_choices = args[selected_choices_arg]
    if isinstance(selected_choices, six.text_type):
        choices = [c.strip() for c in selected_choices.split(',')]
    else:
        choices = [c.tag.name for c in selected_choices if c]
    options = [('<option    value="%s"    selected="selected">%s</option>' % (c, c)) for c in choices]
    return '\n'.join(options)
