Revision a5d4c70f flowspec/forms.py

b/flowspec/forms.py
123 123
        if destinationports and not destination:
124 124
            raise forms.ValidationError('Once destination port is matched, destination has to be filled as well. Either deselect destination port or fill destination address')
125 125
        if not (source or sourceports or ports or destination or destinationports):
126
            raise forms.ValidationError('Fill at least a Route Match Condition')
126
            raise forms.ValidationError('Fill at least a Rule Match Condition')
127 127
        if not user.is_superuser and then[0].action not in settings.UI_USER_THEN_ACTIONS:
128 128
            raise forms.ValidationError('This action "%s" is not permitted' %(then[0].action))
129 129
        existing_routes = Route.objects.exclude(status='EXPIRED').exclude(status='PENDING').exclude(status='ERROR').exclude(status='ADMININACTIVE')

Also available in: Unified diff