from django import forms

from cyder.base.eav.forms import get_eav_form
from cyder.base.mixins import UsabilityFormMixin
from cyder.core.system.models import System, SystemAV


class SystemForm(forms.ModelForm):

    class Meta:
        model = System


class ExtendedSystemForm(forms.ModelForm, UsabilityFormMixin):
    interface_type = forms.ChoiceField(
        widget=forms.RadioSelect, choices=(
            ('Static', 'Static Interface'),
            ('Dynamic', 'Dynamic Interface')))

    class Meta:
        model = System


SystemAVForm = get_eav_form(SystemAV, System)

from django import forms

from cyder.base.eav.forms import get_eav_form
from cyder.base.mixins import UsabilityFormMixin
from cyder.core.system.models import System, SystemAV


class SystemForm(forms.ModelForm):

    class Meta:
        model = System


class ExtendedSystemForm(forms.ModelForm, UsabilityFormMixin):
    interface_type = forms.ChoiceField(
        widget=forms.RadioSelect, choices=(
            ('static_interface', 'Static Interface'),
            ('dynamic_interface', 'Dynamic Interface')))

    class Meta:
        model = System


SystemAVForm = get_eav_form(SystemAV, System)

Fix system form interface_type choices
Fix system form interface_type choices

  from django import forms
  
  from cyder.base.eav.forms import get_eav_form
  from cyder.base.mixins import UsabilityFormMixin
  from cyder.core.system.models import System, SystemAV
  
  
  class SystemForm(forms.ModelForm):
  
      class Meta:
          model = System
  
  
  class ExtendedSystemForm(forms.ModelForm, UsabilityFormMixin):
      interface_type = forms.ChoiceField(
          widget=forms.RadioSelect, choices=(
-             ('Static', 'Static Interface'),
-             ('Dynamic', 'Dynamic Interface')))
+             ('static_interface', 'Static Interface'),
+             ('dynamic_interface', 'Dynamic Interface')))
  
      class Meta:
          model = System
  
  
  SystemAVForm = get_eav_form(SystemAV, System)
  
Fix system form interface_type choices
## Code Before:
from django import forms

from cyder.base.eav.forms import get_eav_form
from cyder.base.mixins import UsabilityFormMixin
from cyder.core.system.models import System, SystemAV


class SystemForm(forms.ModelForm):

    class Meta:
        model = System


class ExtendedSystemForm(forms.ModelForm, UsabilityFormMixin):
    interface_type = forms.ChoiceField(
        widget=forms.RadioSelect, choices=(
            ('Static', 'Static Interface'),
            ('Dynamic', 'Dynamic Interface')))

    class Meta:
        model = System


SystemAVForm = get_eav_form(SystemAV, System)

## Instruction:
Fix system form interface_type choices
## Code After:
from django import forms

from cyder.base.eav.forms import get_eav_form
from cyder.base.mixins import UsabilityFormMixin
from cyder.core.system.models import System, SystemAV


class SystemForm(forms.ModelForm):

    class Meta:
        model = System


class ExtendedSystemForm(forms.ModelForm, UsabilityFormMixin):
    interface_type = forms.ChoiceField(
        widget=forms.RadioSelect, choices=(
            ('static_interface', 'Static Interface'),
            ('dynamic_interface', 'Dynamic Interface')))

    class Meta:
        model = System


SystemAVForm = get_eav_form(SystemAV, System)
