from django import forms


class YesNoIgnoredField(forms.NullBooleanField):
    widget = forms.widgets.RadioSelect(
        choices=(
            (True, "Sim"), (False, "Não"), (None, "Ignorado"),
        ),
    )

from django import forms


class YesNoIgnoredField(forms.NullBooleanField):
    widget = forms.widgets.RadioSelect(
        attrs={'class': 'inline'},
        choices=(
            (True, "Sim"), (False, "Não"), (None, "Ignorado"),
        ),
    )

Add inline class to YesNoIgnored field
:memo: Add inline class to YesNoIgnored field

  from django import forms
  
  
  class YesNoIgnoredField(forms.NullBooleanField):
      widget = forms.widgets.RadioSelect(
+         attrs={'class': 'inline'},
          choices=(
              (True, "Sim"), (False, "Não"), (None, "Ignorado"),
          ),
      )
  
Add inline class to YesNoIgnored field
## Code Before:
from django import forms


class YesNoIgnoredField(forms.NullBooleanField):
    widget = forms.widgets.RadioSelect(
        choices=(
            (True, "Sim"), (False, "Não"), (None, "Ignorado"),
        ),
    )

## Instruction:
Add inline class to YesNoIgnored field
## Code After:
from django import forms


class YesNoIgnoredField(forms.NullBooleanField):
    widget = forms.widgets.RadioSelect(
        attrs={'class': 'inline'},
        choices=(
            (True, "Sim"), (False, "Não"), (None, "Ignorado"),
        ),
    )
