Skip to content

Commit 7789df3

Browse files
committed
adjust indenting for docstring
1 parent 1dbe0b7 commit 7789df3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

netbox_acls/forms/models.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ def __init__(self, *args, **kwargs):
167167
def clean(self):
168168
"""
169169
Validates form inputs before submitting:
170-
- Check if more than one host type selected.
171-
- Check if no hosts selected.
172-
- Check if duplicate entry. (Because of GFK.)
173-
- Check if Access List has no existing rules before change the Access List's type.
170+
- Check if more than one host type selected.
171+
- Check if no hosts selected.
172+
- Check if duplicate entry. (Because of GFK.)
173+
- Check if Access List has no existing rules before change the Access List's type.
174174
"""
175175
cleaned_data = super().clean()
176176
error_message = {}
@@ -376,12 +376,12 @@ class Meta:
376376
def clean(self):
377377
"""
378378
Validates form inputs before submitting:
379-
- Check if both interface and vminterface are set.
380-
- Check if neither interface nor vminterface are set.
381-
- Check that an interface's parent device/virtual_machine is assigned to the Access List.
382-
- Check that an interface's parent device/virtual_machine is assigned to the Access List.
383-
- Check for duplicate entry. (Because of GFK)
384-
- Check that the interface does not have an existing ACL applied in the direction already.
379+
- Check if both interface and vminterface are set.
380+
- Check if neither interface nor vminterface are set.
381+
- Check that an interface's parent device/virtual_machine is assigned to the Access List.
382+
- Check that an interface's parent device/virtual_machine is assigned to the Access List.
383+
- Check for duplicate entry. (Because of GFK)
384+
- Check that the interface does not have an existing ACL applied in the direction already.
385385
"""
386386
cleaned_data = super().clean()
387387
error_message = {}

0 commit comments

Comments
 (0)