Skip to content

Commit

Permalink
adjust indenting for docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmerolle committed Jan 28, 2023
1 parent 1dbe0b7 commit 7789df3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions netbox_acls/forms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ def __init__(self, *args, **kwargs):
def clean(self):
"""
Validates form inputs before submitting:
- Check if more than one host type selected.
- Check if no hosts selected.
- Check if duplicate entry. (Because of GFK.)
- Check if Access List has no existing rules before change the Access List's type.
- Check if more than one host type selected.
- Check if no hosts selected.
- Check if duplicate entry. (Because of GFK.)
- Check if Access List has no existing rules before change the Access List's type.
"""
cleaned_data = super().clean()
error_message = {}
Expand Down Expand Up @@ -376,12 +376,12 @@ class Meta:
def clean(self):
"""
Validates form inputs before submitting:
- Check if both interface and vminterface are set.
- Check if neither interface nor vminterface are set.
- Check that an interface's parent device/virtual_machine is assigned to the Access List.
- Check that an interface's parent device/virtual_machine is assigned to the Access List.
- Check for duplicate entry. (Because of GFK)
- Check that the interface does not have an existing ACL applied in the direction already.
- Check if both interface and vminterface are set.
- Check if neither interface nor vminterface are set.
- Check that an interface's parent device/virtual_machine is assigned to the Access List.
- Check that an interface's parent device/virtual_machine is assigned to the Access List.
- Check for duplicate entry. (Because of GFK)
- Check that the interface does not have an existing ACL applied in the direction already.
"""
cleaned_data = super().clean()
error_message = {}
Expand Down

0 comments on commit 7789df3

Please sign in to comment.