I need to render a radio button group without UL. In Django 1.9, I used [this answer](https://stackoverflow.com/a/16523287/2233706), and I use this in many places. I'm upgrading to Django 1.11, and `RadioFieldRenderer` is [no longer supported](https://docs.djangoproject.com/en/1.11/releases/1.11/#changes-due-to-the-introduction-of-template-based-widget-rendering). How can I accomplish what I'm doing right now in Django 1.11?

**This is what I ended up doing in my template as per dirkgroten's answer**

```
{% with id=widget.attrs.id %}
{% for group, options, index in widget.optgroups %}
    {% for option in options %}
        {% include option.template_name with widget=option %}
    {% endfor %}
{% endfor %}
{% endwith %}

```