HI
I want to align the radio buttons horizontally. By default django forms displays in vertical format.
feature_type = forms.TypedChoiceField(choices =
According to the Django docs 'attrs' is a dictionary containing HTML attributes to be set on the rendered widget.
With that in mind a simple form based solution would be something like the following:
feature_type = forms.TypedChoiceField(
choices = formfields.FeatureType,
widget = forms.RadioSelect(attrs={
'style': 'display: inline-block'
})
)