Django Forms cannot render Radio Buttons
<p>Sorry I am very new to Django. I read a lot of answers but cannot make it work. I am missing something</p>

<p>This is my forms.py</p>

<pre><code>    from django import forms
    from .models import Post
    from django.utils.translation import gettext as _



    class EventsForm(forms.ModelForm):
     class Meta:
        CHOICES=[('select1','select 1'), ('select2','select 2')]
        model = Post
        widgets = {
            'title': forms.TextInput(attrs={'placeholder': _('form-title')}),
            'type_id': forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect),
        }
        fields = ('title', 'type_id', 'post_date', )
</code></pre>

<p>I want to have Radio Buttons for <strong>type_id</strong></p>

<p>I am getting the error</p>

<pre><code>'ChoiceField' object has no attribute 'attrs'
</code></pre>

<p>Can you explain me what I am doing wrong :)</p>

<p>Thank you</p>