from django import forms

from payments.settings import PLAN_CHOICES


class PlanForm(forms.Form):
    
    plan = forms.ChoiceField(choices=PLAN_CHOICES + [("", "-------")])

from django import forms

from payments.settings import PLAN_CHOICES


class PlanForm(forms.Form):
    # pylint: disable=R0924
    plan = forms.ChoiceField(choices=PLAN_CHOICES + [("", "-------")])

Disable R0924 check on PlanForm
Disable R0924 check on PlanForm

This check fails on Django 1.4 but not Django 1.5

  from django import forms
  
  from payments.settings import PLAN_CHOICES
  
  
  class PlanForm(forms.Form):
-     
+     # pylint: disable=R0924
      plan = forms.ChoiceField(choices=PLAN_CHOICES + [("", "-------")])
  
Disable R0924 check on PlanForm
## Code Before:
from django import forms

from payments.settings import PLAN_CHOICES


class PlanForm(forms.Form):
    
    plan = forms.ChoiceField(choices=PLAN_CHOICES + [("", "-------")])

## Instruction:
Disable R0924 check on PlanForm
## Code After:
from django import forms

from payments.settings import PLAN_CHOICES


class PlanForm(forms.Form):
    # pylint: disable=R0924
    plan = forms.ChoiceField(choices=PLAN_CHOICES + [("", "-------")])
