Remove the redundant "required=True"

The django form field default is "required=True", so this patch
remove the redundant "required=True" in the form.

Change-Id: I570c8ec25f9434c9b8c84d3c5ed6ffd1789cd1a2
This commit is contained in:
Qian Min Chen 2018-07-20 10:13:38 +08:00
parent c6d1225686
commit f8e9806766
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ LOG = logging.getLogger(__name__)
class CreateRawRule(forms.SelfHandlingForm):
rule = forms.CharField(label=_("Rule"), required=True,
rule = forms.CharField(label=_("Rule"),
widget=forms.Textarea(attrs={'rows': 5}))
rule_name = forms.CharField(max_length=255, label=_("Rule Name"),
required=False)