diff --git a/cloudkittydashboard/dashboards/admin/hashmap/forms.py b/cloudkittydashboard/dashboards/admin/hashmap/forms.py index 84458bf..ba63ee2 100644 --- a/cloudkittydashboard/dashboards/admin/hashmap/forms.py +++ b/cloudkittydashboard/dashboards/admin/hashmap/forms.py @@ -33,8 +33,7 @@ class CreateServiceForm(forms.SelfHandlingForm): choices=services_choices, widget=forms.Select(attrs={ 'class': 'switchable', - 'data-slug': 'servicetype'}), - required=True) + 'data-slug': 'servicetype'})) service = forms.DynamicChoiceField( label=_("Service"), help_text=_("Services are provided by main collector."), @@ -100,13 +99,11 @@ class CreateFieldForm(forms.SelfHandlingForm): fields = api.identify(fields) choices = sorted([(field, field) for field in fields['metadata']]) self.fields['field'] = forms.DynamicChoiceField( - label=_("Field"), - required=True) + label=_("Field")) self.fields['field'].choices = choices else: self.fields['field'] = forms.CharField( - label=_("Field"), - required=True) + label=_("Field")) class CreateGroupForm(forms.SelfHandlingForm): diff --git a/cloudkittydashboard/dashboards/admin/modules/forms.py b/cloudkittydashboard/dashboards/admin/modules/forms.py index 26cb28b..c8c0c6e 100644 --- a/cloudkittydashboard/dashboards/admin/modules/forms.py +++ b/cloudkittydashboard/dashboards/admin/modules/forms.py @@ -23,7 +23,7 @@ LOG = logging.getLogger(__name__) class EditPriorityForm(forms.SelfHandlingForm): - priority = forms.IntegerField(label=_("Priority"), required=True) + priority = forms.IntegerField(label=_("Priority")) def handle(self, request, data): ck_client = api.cloudkittyclient(request) diff --git a/cloudkittydashboard/dashboards/admin/pyscripts/forms.py b/cloudkittydashboard/dashboards/admin/pyscripts/forms.py index b03f288..ee97ca9 100644 --- a/cloudkittydashboard/dashboards/admin/pyscripts/forms.py +++ b/cloudkittydashboard/dashboards/admin/pyscripts/forms.py @@ -33,8 +33,7 @@ class CreateScriptForm(forms.SelfHandlingForm): choices=source_choices, widget=forms.Select(attrs={ 'class': 'switchable', - 'data-slug': 'scriptsource'}), - required=True) + 'data-slug': 'scriptsource'})) script_help = _("A script or set of python commands to modify rating " "calculations.") script_upload = forms.FileField(