# destination_ports = forms.ModelMultipleChoiceField(queryset=MatchPort.objects.all(), help_text=ugettext_lazy("A set of destination ports to block"), label=ugettext_lazy("Destination Ports"), required=False)
# ports = forms.ModelMultipleChoiceField(queryset=MatchPort.objects.all(), help_text=ugettext_lazy("A set of ports to block"), label=ugettext_lazy("Ports"), required=False)
classMeta:
model=Route
...
...
@@ -99,6 +100,8 @@ class RouteForm(forms.ModelForm):
raiseforms.ValidationError('Once destination port is matched, destination has to be filled as well. Either deselect destination port or fill destination address')