def __init__(self, request, *args, **kwargs):
    super(CommonQuotaAction, self).__init__(request, *args, **kwargs)
    disabled_quotas = self.initial['disabled_quotas']
    for field in disabled_quotas:
        if (field in self.fields):
            self.fields[field].required = False
            self.fields[field].widget = forms.HiddenInput()
def __init__(self, request, *args, **kwargs):
    super(CommonQuotaAction, self).__init__(request, *args, **kwargs)
    disabled_quotas = self.initial['disabled_quotas']
    for field in disabled_quotas:
        if (field in self.fields):
            self.fields[field].required = False
            self.fields[field].widget = forms.HiddenInput()